summaryrefslogtreecommitdiffstats
path: root/src/drawscreen.c
diff options
context:
space:
mode:
authorGary Johnson <garyjohn@spocom.com>2021-07-26 22:19:10 +0200
committerBram Moolenaar <Bram@vim.org>2021-07-26 22:19:10 +0200
commit53ba05b09075f14227f9be831a22ed16f7cc26b2 (patch)
tree75d5ddb38aa9702416d73b7a7b8f158f1d0c320a /src/drawscreen.c
parent29b857150c111a455f1a38a8f748243524f692e1 (diff)
patch 8.2.3227: 'virtualedit' can only be set globallyv8.2.3227
Problem: 'virtualedit' can only be set globally. Solution: Make 'virtualedit' global-local. (Gary Johnson, closes #8638)
Diffstat (limited to 'src/drawscreen.c')
-rw-r--r--src/drawscreen.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/drawscreen.c b/src/drawscreen.c
index 49615bda60..36aad637b2 100644
--- a/src/drawscreen.c
+++ b/src/drawscreen.c
@@ -2006,21 +2006,21 @@ win_update(win_T *wp)
{
colnr_T fromc, toc;
#if defined(FEAT_LINEBREAK)
- int save_ve_flags = ve_flags;
+ int save_ve_flags = curbuf->b_ve_flags;
if (curwin->w_p_lbr)
- ve_flags = VE_ALL;
+ curbuf->b_ve_flags = VE_ALL;
#endif
getvcols(wp, &VIsual, &curwin->w_cursor, &fromc, &toc);
++toc;
#if defined(FEAT_LINEBREAK)
- ve_flags = save_ve_flags;
+ curbuf->b_ve_flags = save_ve_flags;
#endif
// Highlight to the end of the line, unless 'virtualedit' has
// "block".
if (curwin->w_curswant == MAXCOL)
{
- if (ve_flags & VE_BLOCK)
+ if (get_ve_flags() & VE_BLOCK)
{
pos_T pos;
int cursor_above =