Patch 8.2.4943
Problem: Changing 'switchbuf' may have no effect.
Solution: Handle 'switchbuf' in didset_string_options(). (Sean Dewar,
closes #10406)
Files: src/optionstr.c, src/testdir/test_options.vim
*** ../vim-8.2.4942/src/optionstr.c 2022-04-15 20:50:13.463235819 +0100
--- src/optionstr.c 2022-05-12 17:40:54.750985162 +0100
***************
*** 125,130 ****
--- 125,131 ----
#if defined(FEAT_TOOLBAR) && defined(FEAT_GUI_GTK)
(void)opt_strings_flags(p_tbis, p_tbis_values, &tbis_flags, FALSE);
#endif
+ (void)opt_strings_flags(p_swb, p_swb_values, &swb_flags, TRUE);
}
#if defined(FEAT_EVAL)
*** ../vim-8.2.4942/src/testdir/test_options.vim 2022-05-09 12:16:14.761073336 +0100
--- src/testdir/test_options.vim 2022-05-12 17:40:54.754985160 +0100
***************
*** 1299,1302 ****
--- 1299,1313 ----
set wildoptions=
endfunc
+ func Test_switchbuf_reset()
+ set switchbuf=useopen
+ sblast
+ call assert_equal(1, winnr('$'))
+ set all&
+ call assert_equal('', &switchbuf)
+ sblast
+ call assert_equal(2, winnr('$'))
+ only!
+ endfunc
+
" vim: shiftwidth=2 sts=2 expandtab
*** ../vim-8.2.4942/src/version.c 2022-05-12 17:24:45.923382094 +0100
--- src/version.c 2022-05-12 17:42:57.338987036 +0100
***************
*** 748,749 ****
--- 748,751 ----
{ /* Add new patch number below this line */
+ /**/
+ 4943,
/**/
--
hundred-and-one symptoms of being an internet addict:
178. You look for an icon to double-click to open your bedroom window.
/// Bram Moolenaar -- Br...@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 ///