diff options
author | Gary Johnson <garyjohn@spocom.com> | 2021-08-03 18:33:08 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-08-03 18:33:08 +0200 |
commit | 51ad850f5fbafa7aa3f60affa74ec9c9f992c6cc (patch) | |
tree | 18fd2f54ee199dcf739262d9df56ccb4d6ac53d1 /src/drawscreen.c | |
parent | 2c70711e3fb2ef24a7f55322fdadbf7f9e657c2f (diff) |
patch 8.2.3280: 'virtualedit' local to buffer is not the best solutionv8.2.3280
Problem: 'virtualedit' local to buffer is not the best solution.
Solution: Make it window-local. (Gary Johnson, closes #8685)
Diffstat (limited to 'src/drawscreen.c')
-rw-r--r-- | src/drawscreen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drawscreen.c b/src/drawscreen.c index 36aad637b2..82e53753bf 100644 --- a/src/drawscreen.c +++ b/src/drawscreen.c @@ -2006,15 +2006,15 @@ win_update(win_T *wp) { colnr_T fromc, toc; #if defined(FEAT_LINEBREAK) - int save_ve_flags = curbuf->b_ve_flags; + int save_ve_flags = curwin->w_ve_flags; if (curwin->w_p_lbr) - curbuf->b_ve_flags = VE_ALL; + curwin->w_ve_flags = VE_ALL; #endif getvcols(wp, &VIsual, &curwin->w_cursor, &fromc, &toc); ++toc; #if defined(FEAT_LINEBREAK) - curbuf->b_ve_flags = save_ve_flags; + curwin->w_ve_flags = save_ve_flags; #endif // Highlight to the end of the line, unless 'virtualedit' has // "block". |