0
0
mirror of https://github.com/vim/vim.git synced 2025-07-04 23:07:33 -04:00

patch 8.1.1482: no test for wincol() depending on the 'number' option

Problem:    No test for wincol() depending on the 'number' option.
Solution:   Add a couple of tests. (Christian Brabandt, closes #4500)
This commit is contained in:
Bram Moolenaar 2019-06-06 15:40:08 +02:00
parent 12e71eb8a8
commit f6d50f1da8
2 changed files with 12 additions and 0 deletions

View File

@ -694,12 +694,22 @@ func Test_scrollbars()
call setline(11, repeat('x', 150)) call setline(11, repeat('x', 150))
redraw redraw
call assert_equal(1, wincol()) call assert_equal(1, wincol())
set number
redraw
call assert_equal(5, wincol())
set nonumber
redraw
call assert_equal(1, col('.')) call assert_equal(1, col('.'))
" scroll to character 11, cursor is moved " scroll to character 11, cursor is moved
call test_scrollbar('hor', 10, 0) call test_scrollbar('hor', 10, 0)
redraw redraw
call assert_equal(1, wincol()) call assert_equal(1, wincol())
set number
redraw
call assert_equal(5, wincol())
set nonumber
redraw
call assert_equal(11, col('.')) call assert_equal(11, col('.'))
set guioptions& set guioptions&

View File

@ -767,6 +767,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1482,
/**/ /**/
1481, 1481,
/**/ /**/