Mercurial > vim
comparison src/testdir/test_options.vim @ 28839:b93668df9160 v8.2.4943
patch 8.2.4943: changing 'switchbuf' may have no effect
Commit: https://github.com/vim/vim/commit/39c46b43780ad00ea27a93d92aadd44753d4c3ea
Author: Sean Dewar <seandewar@users.noreply.github.com>
Date: Thu May 12 17:44:29 2022 +0100
patch 8.2.4943: changing 'switchbuf' may have no effect
Problem: Changing 'switchbuf' may have no effect.
Solution: Handle 'switchbuf' in didset_string_options(). (Sean Dewar,
closes #10406)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 12 May 2022 18:45:02 +0200 |
parents | fea88e555652 |
children | 60977de70684 |
comparison
equal
deleted
inserted
replaced
28838:56bcafbfd84a | 28839:b93668df9160 |
---|---|
1297 call assert_equal('"set notermguicolors', @:) | 1297 call assert_equal('"set notermguicolors', @:) |
1298 | 1298 |
1299 set wildoptions= | 1299 set wildoptions= |
1300 endfunc | 1300 endfunc |
1301 | 1301 |
1302 func Test_switchbuf_reset() | |
1303 set switchbuf=useopen | |
1304 sblast | |
1305 call assert_equal(1, winnr('$')) | |
1306 set all& | |
1307 call assert_equal('', &switchbuf) | |
1308 sblast | |
1309 call assert_equal(2, winnr('$')) | |
1310 only! | |
1311 endfunc | |
1312 | |
1302 " vim: shiftwidth=2 sts=2 expandtab | 1313 " vim: shiftwidth=2 sts=2 expandtab |