]> granicus.if.org Git - vim/commitdiff
patch 8.2.1903: buffer test fails with normal features v8.2.1903
authorBram Moolenaar <Bram@vim.org>
Sun, 25 Oct 2020 15:18:26 +0000 (16:18 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 25 Oct 2020 15:18:26 +0000 (16:18 +0100)
Problem:    Buffer test fails with normal features.
Solution:   Use 'numberwidth' instead of 'conceallevel' in the test.

src/testdir/test_buffer.vim
src/version.c

index 9ba72c5616463789e2ee3f1365b710b37628f2d6..2f0f31221add585ab3a746956b91fe2b0f710461 100644 (file)
@@ -364,11 +364,11 @@ endfunc
 
 func Test_badd_options()
   new SomeNewBuffer
-  setlocal cole=3
+  setlocal numberwidth=3
   wincmd p
   badd SomeNewBuffer
   new SomeNewBuffer
-  call assert_equal(3, &cole)
+  call assert_equal(3, &numberwidth)
   close
   close
   bwipe! SomeNewBuffer
index c2d6240e875bec63bfc12ca043548458eb220f2d..9725e9adcaec84848252152110891b2e1e0f1ee6 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1903,
 /**/
     1902,
 /**/