Mercurial > vim
diff src/ops.c @ 5496:93c8296281dd v7.4.097
updated for version 7.4.097
Problem: Unexpected behavior change related to 'virtualedit'. (Ingo Karkat)
Solution: Update the valid cursor position. (Christian Brabandt)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Thu, 21 Nov 2013 13:24:41 +0100 |
parents | 9334c994be7b |
children | 8451f643a13e |
line wrap: on
line diff
--- a/src/ops.c +++ b/src/ops.c @@ -3844,7 +3844,11 @@ do_put(regname, dir, count, flags) ml_replace(lnum, newp, FALSE); /* Place cursor on last putted char. */ if (lnum == curwin->w_cursor.lnum) + { + /* make sure curwin->w_virtcol is updated */ + changed_cline_bef_curs(); curwin->w_cursor.col += (colnr_T)(totlen - 1); + } } #ifdef FEAT_VISUAL if (VIsual_active)