]> granicus.if.org Git - vim/commitdiff
updated for version 7.4a.022 v7.4a.022
authorBram Moolenaar <Bram@vim.org>
Sun, 14 Jul 2013 11:32:15 +0000 (13:32 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 14 Jul 2013 11:32:15 +0000 (13:32 +0200)
Problem:    Using "d2g$" does not delete the last character. (ZyX)
Solution:   Set the "inclusive" flag properly.

src/normal.c
src/version.c

index 762f3197be215b59f7d3dbd26ff5609a1bd48a9d..80ada682edcbf368605cd99b6b65a69aa2c5fe60 100644 (file)
@@ -4545,7 +4545,7 @@ nv_screengo(oap, dir, dist)
     int                width2;         /* test width for wrapped screen line */
 
     oap->motion_type = MCHAR;
-    oap->inclusive = FALSE;
+    oap->inclusive = (curwin->w_curswant == MAXCOL);
 
     col_off1 = curwin_col_off();
     col_off2 = col_off1 - curwin_col_off2();
index 59476e5233bbad2914ed01934afd29549e8b746e..f02bf3552111507754ea493fda38521e69181dda 100644 (file)
@@ -727,6 +727,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    22,
 /**/
     21,
 /**/