Patch 9.0.1255
Problem:    Changing 'virtualedit' does not have immediate effect.
Solution:   Correct how is checked for a changed value. (closes #11878)
Files:      src/optionstr.c, src/testdir/test_virtualedit.vim


*** ../vim-9.0.1254/src/optionstr.c     2023-01-25 15:31:24.358723462 +0000
--- src/optionstr.c     2023-01-28 16:33:36.602446481 +0000
***************
*** 2078,2084 ****
        {
            if (opt_strings_flags(ve, p_ve_values, flags, TRUE) != OK)
                errmsg = e_invalid_argument;
!           else if (STRCMP(p_ve, oldval) != 0)
            {
                // Recompute cursor position in case the new 've' setting
                // changes something.
--- 2078,2084 ----
        {
            if (opt_strings_flags(ve, p_ve_values, flags, TRUE) != OK)
                errmsg = e_invalid_argument;
!           else if (STRCMP(ve, oldval) != 0)
            {
                // Recompute cursor position in case the new 've' setting
                // changes something.
*** ../vim-9.0.1254/src/testdir/test_virtualedit.vim    2022-09-16 
22:16:54.404074904 +0100
--- src/testdir/test_virtualedit.vim    2023-01-28 16:32:50.418421415 +0000
***************
*** 537,542 ****
--- 537,555 ----
    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
*** ../vim-9.0.1254/src/version.c       2023-01-28 15:19:36.960757169 +0000
--- src/version.c       2023-01-28 16:30:20.150330710 +0000
***************
*** 697,698 ****
--- 697,700 ----
  {   /* Add new patch number below this line */
+ /**/
+     1255,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
57. You begin to wonder how on earth your service provider is allowed to call
    200 hours per month "unlimited."

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20230128163804.1DAFD1C1443%40moolenaar.net.

Raspunde prin e-mail lui