mirror of
https://github.com/vim/vim.git
synced 2025-11-16 23:24:03 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user