]> granicus.if.org Git - vim/commitdiff
patch 8.1.1482: no test for wincol() depending on the 'number' option v8.1.1482
authorBram Moolenaar <Bram@vim.org>
Thu, 6 Jun 2019 13:40:08 +0000 (15:40 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 6 Jun 2019 13:40:08 +0000 (15:40 +0200)
Problem:    No test for wincol() depending on the 'number' option.
Solution:   Add a couple of tests. (Christian Brabandt, closes #4500)

src/testdir/test_gui.vim
src/version.c

index a372c1f9e28e247d268105aa32d0cd0620afebe9..5a1763db8dcacb52dd1af8fbc6ec9754a08d1bc5 100644 (file)
@@ -694,12 +694,22 @@ func Test_scrollbars()
   call setline(11, repeat('x', 150))
   redraw
   call assert_equal(1, wincol())
+  set number
+  redraw
+  call assert_equal(5, wincol())
+  set nonumber
+  redraw
   call assert_equal(1, col('.'))
 
   " scroll to character 11, cursor is moved
   call test_scrollbar('hor', 10, 0)
   redraw
   call assert_equal(1, wincol())
+  set number
+  redraw
+  call assert_equal(5, wincol())
+  set nonumber
+  redraw
   call assert_equal(11, col('.'))
 
   set guioptions&
index 2fd64c3f414df87dac4ed7f7c4b5d05ddb037cf7..2687eb943174009bd2743238250eebdef59b5bb1 100644 (file)
@@ -767,6 +767,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1482,
 /**/
     1481,
 /**/