commit | 91b2bdb083dc21c89af7101ce73cf1b547a7f91f | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Jul 14 13:32:15 2013 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Jul 14 13:32:15 2013 +0200 |
tree | ea85fb30d158d9a1220fa84bc70311836cecb2fe | |
parent | ff52518969cced60a3b2d77e65b042e2e1dc2adc [diff] [blame] |
updated for version 7.4a.022 Problem: Using "d2g$" does not delete the last character. (ZyX) Solution: Set the "inclusive" flag properly.
diff --git a/src/normal.c b/src/normal.c index 762f319..80ada68 100644 --- a/src/normal.c +++ b/src/normal.c
@@ -4545,7 +4545,7 @@ 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();