0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

updated for version 7.4.467

This commit is contained in:
Bram Moolenaar
2014-10-09 13:24:43 +02:00
parent 56095e1ceb
commit 404406ad6b
5 changed files with 33 additions and 2 deletions

View File

@@ -1584,9 +1584,17 @@ win_update(wp)
*/
if (VIsual_mode == Ctrl_V)
{
colnr_T fromc, toc;
colnr_T fromc, toc;
#if defined(FEAT_VIRTUALEDIT) && defined(FEAT_LINEBREAK)
int save_ve_flags = ve_flags;
if (curwin->w_p_lbr)
ve_flags = VE_ALL;
#endif
getvcols(wp, &VIsual, &curwin->w_cursor, &fromc, &toc);
#if defined(FEAT_VIRTUALEDIT) && defined(FEAT_LINEBREAK)
ve_flags = save_ve_flags;
#endif
++toc;
if (curwin->w_curswant == MAXCOL)
toc = MAXCOL;