1
0
forked from aniani/vim

patch 8.2.1904: still using default option values after using ":badd +1"

Problem:    Still using default option values after using ":badd +1".
Solution:   Find a window where options were set.  Don't set the window when
            using ":badd".
This commit is contained in:
Bram Moolenaar
2020-10-25 17:09:50 +01:00
parent 37e4e03c67
commit 89b693e562
5 changed files with 25 additions and 9 deletions

View File

@@ -366,7 +366,7 @@ func Test_badd_options()
new SomeNewBuffer
setlocal numberwidth=3
wincmd p
badd SomeNewBuffer
badd +1 SomeNewBuffer
new SomeNewBuffer
call assert_equal(3, &numberwidth)
close