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:
parent
12e71eb8a8
commit
f6d50f1da8
@ -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&
|
||||
|
@ -767,6 +767,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1482,
|
||||
/**/
|
||||
1481,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user