summaryrefslogtreecommitdiff
path: root/src/optionstr.c
diff options
context:
space:
mode:
authorGary Johnson <garyjohn@spocom.com>2021-08-03 18:33:08 +0200
committerBram Moolenaar <Bram@vim.org>2021-08-03 18:33:08 +0200
commit51ad850f5fbafa7aa3f60affa74ec9c9f992c6cc (patch)
tree18fd2f54ee199dcf739262d9df56ccb4d6ac53d1 /src/optionstr.c
parent2c70711e3fb2ef24a7f55322fdadbf7f9e657c2f (diff)
downloadvim-git-51ad850f5fbafa7aa3f60affa74ec9c9f992c6cc.tar.gz
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/optionstr.c')
-rw-r--r--src/optionstr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/optionstr.c b/src/optionstr.c
index c22a441ff..a394d8d06 100644
--- a/src/optionstr.c
+++ b/src/optionstr.c
@@ -298,7 +298,6 @@ check_buf_options(buf_T *buf)
check_string_option(&buf->b_p_vsts);
check_string_option(&buf->b_p_vts);
#endif
- check_string_option(&buf->b_p_ve);
}
/*
@@ -2083,8 +2082,8 @@ ambw_end:
if (opt_flags & OPT_LOCAL)
{
- ve = curbuf->b_p_ve;
- flags = &curbuf->b_ve_flags;
+ ve = curwin->w_p_ve;
+ flags = &curwin->w_ve_flags;
}
if ((opt_flags & OPT_LOCAL) && *ve == NUL)