changeset 5192:c28202427d71 v7.4a.022

updated for version 7.4a.022 Problem: Using "d2g$" does not delete the last character. (ZyX) Solution: Set the "inclusive" flag properly.
author Bram Moolenaar <bram@vim.org>
date Sun, 14 Jul 2013 13:32:15 +0200
parents e9b5ba7bf3de
children 724f87fc3704
files src/normal.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/normal.c
+++ b/src/normal.c
@@ -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();
--- a/src/version.c
+++ b/src/version.c
@@ -728,6 +728,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    22,
+/**/
     21,
 /**/
     20,