Skip to content

Commit

Permalink
patch 9.0.1566: Motif: GUI scrollbar test fails in 24 lines terminal
Browse files Browse the repository at this point in the history
Problem:    Motif: GUI scrollbar test fails in 24 lines terminal.
Solution:   Skip the part of the test that fails for now.
  • Loading branch information
brammool committed May 18, 2023
1 parent 6fadbc1 commit 74ccbb1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/testdir/test_gui.vim
Expand Up @@ -733,12 +733,15 @@ func Test_scrollbars()
call assert_equal(1, winline())
call assert_equal(11, line('.'))

" scroll to move line 1 at top, cursor stays in line 11
let args = #{which: 'right', value: 0, dragging: 0}
call test_gui_event('scrollbar', args)
redraw
call assert_equal(11, winline())
call assert_equal(11, line('.'))
" FIXME: This test should also pass with Motif and 24 lines
if &lines > 24 || !has('gui_motif')
" scroll to move line 1 at top, cursor stays in line 11
let args = #{which: 'right', value: 0, dragging: 0}
call test_gui_event('scrollbar', args)
redraw
call assert_equal(11, winline())
call assert_equal(11, line('.'))
endif

set nowrap
call setline(11, repeat('x', 150))
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -695,6 +695,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1566,
/**/
1565,
/**/
Expand Down

0 comments on commit 74ccbb1

Please sign in to comment.