Skip to content

Commit 3653752

Browse files
committed
updated for version 7.4a.022
Problem: Using "d2g$" does not delete the last character. (ZyX) Solution: Set the "inclusive" flag properly.
1 parent 0e55bb5 commit 3653752

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/normal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4545,7 +4545,7 @@ nv_screengo(oap, dir, dist)
45454545
int width2; /* test width for wrapped screen line */
45464546

45474547
oap->motion_type = MCHAR;
4548-
oap->inclusive = FALSE;
4548+
oap->inclusive = (curwin->w_curswant == MAXCOL);
45494549

45504550
col_off1 = curwin_col_off();
45514551
col_off2 = col_off1 - curwin_col_off2();

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,8 @@ static char *(features[]) =
727727

728728
static int included_patches[] =
729729
{ /* Add new patch number below this line */
730+
/**/
731+
22,
730732
/**/
731733
21,
732734
/**/

0 commit comments

Comments
 (0)