Mercurial > vim
diff src/normal.c @ 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 | 0b1cb3f839c4 |
children | be8ad9c9b973 |
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;