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 #8685)
diff --git a/src/optionstr.c b/src/optionstr.c
index c22a441..a394d8d 100644
--- a/src/optionstr.c
+++ b/src/optionstr.c
@@ -298,7 +298,6 @@
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 @@
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)