diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-10-24 15:12:37 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-10-24 15:12:37 +0200 |
commit | 28686682e77c0cca963201ae671bd773d86dba31 (patch) | |
tree | 9541f5b475f8458723ac5a2b4ffce47814135355 /src/testdir/test_display.vim | |
parent | 6656c2ec4cc2163cd0a51d617f429ad7fb46d2d5 (diff) | |
download | vim-git-28686682e77c0cca963201ae671bd773d86dba31.tar.gz |
patch 8.1.2206: no test for fixed issue #3893v8.1.2206
Problem: No test for fixed issue #3893.
Solution: Add a test. (Christian Brabandt, #3893)
Diffstat (limited to 'src/testdir/test_display.vim')
-rw-r--r-- | src/testdir/test_display.vim | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/testdir/test_display.vim b/src/testdir/test_display.vim index f500dc789..a25d2cfe0 100644 --- a/src/testdir/test_display.vim +++ b/src/testdir/test_display.vim @@ -158,3 +158,26 @@ func Test_display_listchars_precedes() set list& listchars& wrap& bw! endfunc + +" Check that win_lines() works correctly with the number_only parameter=TRUE +" should break early to optimize cost of drawing, but needs to make sure +" that the number column is correctly highlighted. +func Test_scroll_CursorLineNr_update() + CheckScreendump + + let lines =<< trim END + hi CursorLineNr ctermfg=73 ctermbg=236 + set nu rnu cursorline cursorlineopt=number + exe ":norm! o\<esc>110ia\<esc>" + END + let filename = 'Xdrawscreen' + call writefile(lines, filename) + let buf = RunVimInTerminal('-S '.filename, #{rows: 5, cols: 50}) + call term_sendkeys(buf, "k") + call term_wait(buf) + call VerifyScreenDump(buf, 'Test_winline_rnu', {}) + + " clean up + call StopVimInTerminal(buf) + call delete(filename) +endfunc |