diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-08-15 13:31:00 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-08-15 13:31:00 +0200 |
commit | 2dac213ac6896bffbbfdd9afbdb0ad0e8b032532 (patch) | |
tree | e1afd4ae65a58d60385852c64af95efe74521322 | |
parent | 14f247414733b9dafb50e59320f75e8b56ac6ec6 (diff) | |
download | vim-git-2dac213ac6896bffbbfdd9afbdb0ad0e8b032532.tar.gz |
updated for version 7.3.630v7.3.630
Problem: "|" does not behave correctly when 'virtualedit' is set.
Solution: Call validate_virtcol(). (David Bürgin)
-rw-r--r-- | src/normal.c | 3 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/normal.c b/src/normal.c index f61052b10..6a4fa781c 100644 --- 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; diff --git a/src/version.c b/src/version.c index c35104b05..fad108155 100644 --- a/src/version.c +++ b/src/version.c @@ -715,6 +715,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 630, +/**/ 629, /**/ 628, |