To: vim_dev@googlegroups.com Subject: Patch 9.0.1255 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///