diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-03-08 10:54:01 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-08 10:54:01 +0800 |
| commit | 3cc48e62739a310b592126cb7465d873b5c2d3b2 (patch) | |
| tree | d85991db7b8aa0f8f8849005aab0dcc84ebe3c53 /src/nvim/testdir/test_diffmode.vim | |
| parent | bcda54b30e397a5d2932730d20711bd70cdcdfa0 (diff) | |
| parent | 2adc24b18bd9914c67a9d67d8486c06db85bdf9f (diff) | |
| download | rneovim-3cc48e62739a310b592126cb7465d873b5c2d3b2.tar.gz rneovim-3cc48e62739a310b592126cb7465d873b5c2d3b2.tar.bz2 rneovim-3cc48e62739a310b592126cb7465d873b5c2d3b2.zip | |
Merge pull request #17631 from zeertzjq/vim-8.2.4520
vim-patch:8.2.4520: using wrong highlight for cursor line number
Diffstat (limited to 'src/nvim/testdir/test_diffmode.vim')
| -rw-r--r-- | src/nvim/testdir/test_diffmode.vim | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_diffmode.vim b/src/nvim/testdir/test_diffmode.vim index 482d39056f..10eb979b45 100644 --- a/src/nvim/testdir/test_diffmode.vim +++ b/src/nvim/testdir/test_diffmode.vim @@ -1017,6 +1017,32 @@ func Test_diff_with_cursorline() call delete('Xtest_diff_cursorline') endfunc +func Test_diff_with_cursorline_number() + CheckScreendump + + let lines =<< trim END + hi CursorLine ctermbg=red ctermfg=white + hi CursorLineNr ctermbg=white ctermfg=black cterm=underline + set cursorline number + call setline(1, ["baz", "foo", "foo", "bar"]) + 2 + vnew + call setline(1, ["foo", "foo", "bar"]) + windo diffthis + 1wincmd w + END + call writefile(lines, 'Xtest_diff_cursorline_number') + let buf = RunVimInTerminal('-S Xtest_diff_cursorline_number', {}) + + call VerifyScreenDump(buf, 'Test_diff_with_cursorline_number_01', {}) + call term_sendkeys(buf, ":set cursorlineopt=number\r") + call VerifyScreenDump(buf, 'Test_diff_with_cursorline_number_02', {}) + + " clean up + call StopVimInTerminal(buf) + call delete('Xtest_diff_cursorline_number') +endfunc + func Test_diff_with_cursorline_breakindent() CheckScreendump |