Problem: Changing 'virtualedit' does not have immediate effect.
Solution: Correct how is checked for a changed value. (closes #11878)
{
if (opt_strings_flags(ve, p_ve_values, flags, TRUE) != OK)
errmsg = e_invalid_argument;
- else if (STRCMP(p_ve, oldval) != 0)
+ else if (STRCMP(ve, oldval) != 0)
{
// Recompute cursor position in case the new 've' setting
// changes something.
set virtualedit&
endfunc
+func Test_virtualedit_setlocal()
+ enew
+ setglobal virtualedit=all
+ setlocal virtualedit=all
+ normal! l
+ redraw
+ setlocal virtualedit=none
+ call assert_equal(1, wincol())
+
+ setlocal virtualedit&
+ set virtualedit&
+endfunc
+
func Test_virtualedit_mouse()
let save_mouse = &mouse
set mouse=a
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1255,
/**/
1254,
/**/