Mercurial > vim
changeset 3742:3416ac23d075 v7.3.630
updated for version 7.3.630
Problem: "|" does not behave correctly when 'virtualedit' is set.
Solution: Call validate_virtcol(). (David B?rgin)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 15 Aug 2012 13:31:00 +0200 |
parents | 9266cfe865c3 |
children | 8bfe7f121b55 |
files | src/normal.c src/version.c |
diffstat | 2 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/normal.c +++ b/src/normal.c @@ -7786,7 +7786,10 @@ n_start_visual_mode(c) * virtualedit. Recalculate curwin->w_cursor to avoid bad hilighting. */ if (c == Ctrl_V && (ve_flags & VE_BLOCK) && gchar_cursor() == TAB) + { + validate_virtcol(); coladvance(curwin->w_virtcol); + } #endif VIsual = curwin->w_cursor;