diff options
Diffstat (limited to 'src/ops.c')
-rw-r--r-- | src/ops.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2840,7 +2840,8 @@ do_addsub( // Delete the one character before the insert. curwin->w_cursor = save_pos; (void)del_char(FALSE); - curwin->w_cursor.col = STRLEN(ml_get_curline()) - bytes_after; + curwin->w_cursor.col = (colnr_T)(STRLEN(ml_get_curline()) + - bytes_after); --todel; } while (todel-- > 0) |