To: vim_dev@googlegroups.com Subject: Patch 7.4a.022 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.4a.022 Problem: Using "d2g$" does not delete the last character. (ZyX) Solution: Set the "inclusive" flag properly. Files: src/normal.c *** ../vim-7.4a.021/src/normal.c 2013-07-14 13:31:03.000000000 +0200 --- src/normal.c 2013-07-14 13:24:37.000000000 +0200 *************** *** 4545,4551 **** int width2; /* test width for wrapped screen line */ oap->motion_type = MCHAR; ! oap->inclusive = FALSE; col_off1 = curwin_col_off(); col_off2 = col_off1 - curwin_col_off2(); --- 4545,4551 ---- int width2; /* test width for wrapped screen line */ oap->motion_type = MCHAR; ! oap->inclusive = (curwin->w_curswant == MAXCOL); col_off1 = curwin_col_off(); col_off2 = col_off1 - curwin_col_off2(); *** ../vim-7.4a.021/src/version.c 2013-07-14 13:30:32.000000000 +0200 --- src/version.c 2013-07-14 13:26:02.000000000 +0200 *************** *** 729,730 **** --- 729,732 ---- { /* Add new patch number below this line */ + /**/ + 22, /**/ -- ARTHUR: Now stand aside worthy adversary. BLACK KNIGHT: (Glancing at his shoulder) 'Tis but a scratch. ARTHUR: A scratch? Your arm's off. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///