diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-10-25 15:02:51 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-10-25 15:02:51 +0100 |
commit | e974fa7b2b98e53a59d5ef16a6a1291f12a32e33 (patch) | |
tree | 2416e778e2218070a1fdf1bca3c9310df4d2865a /src/testdir/test_buffer.vim | |
parent | 4ff2f2fb6bef01a06bd726bae8dfa8dd6355d594 (diff) |
patch 8.2.1902: default option values changed with :badd for existing bufferv8.2.1902
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)
Diffstat (limited to 'src/testdir/test_buffer.vim')
-rw-r--r-- | src/testdir/test_buffer.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/testdir/test_buffer.vim b/src/testdir/test_buffer.vim index 8ef41e20fb..9ba72c5616 100644 --- a/src/testdir/test_buffer.vim +++ b/src/testdir/test_buffer.vim @@ -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 |