From cdace43b6c02ba2125dbcf3ce36d26ac8bb3e219 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sat, 13 Feb 2021 14:05:26 -0500 Subject: 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". https://github.com/vim/vim/commit/89b693e5627715cde080c3580c7b641c9bf0c06a --- src/nvim/testdir/test_buffer.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/testdir/test_buffer.vim') diff --git a/src/nvim/testdir/test_buffer.vim b/src/nvim/testdir/test_buffer.vim index 4de11af6f1..40111fdf06 100644 --- a/src/nvim/testdir/test_buffer.vim +++ b/src/nvim/testdir/test_buffer.vim @@ -15,7 +15,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 -- cgit