forked from aniani/vim
patch 8.2.1902: default option values changed with :badd for existing buffer
Problem: Default option values are changed when using :badd for an existing buffer. Solution: When calling buflist_new() pass a zero line number. (closes #7195)
This commit is contained in:
@@ -362,4 +362,16 @@ func Test_sball_with_count()
|
||||
%bw!
|
||||
endfunc
|
||||
|
||||
func Test_badd_options()
|
||||
new SomeNewBuffer
|
||||
setlocal cole=3
|
||||
wincmd p
|
||||
badd SomeNewBuffer
|
||||
new SomeNewBuffer
|
||||
call assert_equal(3, &cole)
|
||||
close
|
||||
close
|
||||
bwipe! SomeNewBuffer
|
||||
endfunc
|
||||
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
Reference in New Issue
Block a user