aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/screen.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-01-15 19:21:17 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-01-15 19:21:17 +0800
commit87e54f123aa1c9c769d3ff35bdd1b5a980ba701c (patch)
tree1cb66900f9e0a0275c53803ca685872ddb9a294e /src/nvim/screen.c
parentd391940b9a074bca7ee82460ccaaabf46b5f2ba9 (diff)
downloadrneovim-87e54f123aa1c9c769d3ff35bdd1b5a980ba701c.tar.gz
rneovim-87e54f123aa1c9c769d3ff35bdd1b5a980ba701c.tar.bz2
rneovim-87e54f123aa1c9c769d3ff35bdd1b5a980ba701c.zip
vim-patch:8.2.3280: 'virtualedit' local to buffer is not the best solution
Problem: 'virtualedit' local to buffer is not the best solution. Solution: Make it window-local. (Gary Johnson, closes vim/vim#8685) https://github.com/vim/vim/commit/51ad850f5fbafa7aa3f60affa74ec9c9f992c6cc
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r--src/nvim/screen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index 9aea42cda3..9b253fad01 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -1215,14 +1215,14 @@ static void win_update(win_T *wp, Providers *providers)
*/
if (VIsual_mode == Ctrl_V) {
colnr_T fromc, toc;
- unsigned int save_ve_flags = curbuf->b_ve_flags;
+ unsigned 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;
}
getvcols(wp, &VIsual, &curwin->w_cursor, &fromc, &toc);
- curbuf->b_ve_flags = save_ve_flags;
+ curwin->w_ve_flags = save_ve_flags;
toc++;
// Highlight to the end of the line, unless 'virtualedit' has
// "block".