diff src/ops.c @ 7011:6cde6404ff7c v7.4.823

patch 7.4.823 Problem: Cursor moves after CTRL-A on alphabetic character. Solution: (Hirohito Higashi, test by Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Tue, 11 Aug 2015 19:36:42 +0200
parents b10995a2f7c3
children 9487ea110214
line wrap: on
line diff
--- a/src/ops.c
+++ b/src/ops.c
@@ -5584,6 +5584,7 @@ do_addsub(command, Prenum1, g_cmd)
 	    did_change = TRUE;
 	    (void)del_char(FALSE);
 	    ins_char(firstdigit);
+	    curwin->w_cursor.col = col;
 	}
 	else
 	{