vim-patch:7.4.823

Problem:    Cursor moves after CTRL-A on alphabetic character.
Solution:   (Hirohito Higashi, test by Christian Brabandt)

25c2f6783a
This commit is contained in:
watiko
2016-01-14 21:37:25 +09:00
parent 9664f513f4
commit 61a3b14726
4 changed files with 34 additions and 2 deletions

View File

@@ -4416,6 +4416,7 @@ int do_addsub(int command, linenr_T Prenum1, bool g_cmd)
did_change = true;
(void)del_char(false);
ins_char(firstdigit);
curwin->w_cursor.col = col;
} else {
if (col > 0 && ptr[col - 1] == '-' && !visual) {
// negative number