diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-08-29 00:20:01 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-08-30 21:12:26 -0400 |
commit | 2bae98a5eaf3a53851ccbbbc043e3e401026cdb7 (patch) | |
tree | 05d122a0e2353bc232ccbdd926dbc5f07b2b0b02 | |
parent | d4df5fc90e83334de32fe5fe4a200f3b75a2d8c9 (diff) | |
download | rneovim-2bae98a5eaf3a53851ccbbbc043e3e401026cdb7.tar.gz rneovim-2bae98a5eaf3a53851ccbbbc043e3e401026cdb7.tar.bz2 rneovim-2bae98a5eaf3a53851ccbbbc043e3e401026cdb7.zip |
vim-patch:8.1.2206: no test for fixed issue vim/vim#3893
Problem: No test for fixed issue vim/vim#3893.
Solution: Add a test. (Christian Brabandt, vim/vim#3893)
https://github.com/vim/vim/commit/28686682e77c0cca963201ae671bd773d86dba31
-rw-r--r-- | src/nvim/testdir/test_display.vim | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_display.vim b/src/nvim/testdir/test_display.vim index db730e0bfd..429253a863 100644 --- a/src/nvim/testdir/test_display.vim +++ b/src/nvim/testdir/test_display.vim @@ -161,3 +161,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 |