diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-05-03 07:21:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-03 07:21:09 +0800 |
commit | 62ecb05957f43b140e7dd874e1f84e3a6fa99838 (patch) | |
tree | 3bc2cb1f7ff44fe51f0973af513bd1c68cecd571 /test/old/testdir | |
parent | 9909668111f521c7fc829ec8d8aa89beafff8777 (diff) | |
download | rneovim-62ecb05957f43b140e7dd874e1f84e3a6fa99838.tar.gz rneovim-62ecb05957f43b140e7dd874e1f84e3a6fa99838.tar.bz2 rneovim-62ecb05957f43b140e7dd874e1f84e3a6fa99838.zip |
vim-patch:9.0.1506: line number not displayed when using 'smoothscroll' (#23453)
Problem: Line number not displayed when using 'smoothscroll'.
Solution: Adjust condition for showing the line number. (closes vim/vim#12333)
https://github.com/vim/vim/commit/88bb3e0a48f160134bdea98cd2b8bd3af86f9d6f
Diffstat (limited to 'test/old/testdir')
-rw-r--r-- | test/old/testdir/test_scroll_opt.vim | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/old/testdir/test_scroll_opt.vim b/test/old/testdir/test_scroll_opt.vim index 4ed54591af..8402fa51e2 100644 --- a/test/old/testdir/test_scroll_opt.vim +++ b/test/old/testdir/test_scroll_opt.vim @@ -137,6 +137,7 @@ func Test_smoothscroll_number() 'line', ]) set smoothscroll + set splitkeep=topline set number cpo+=n :3 @@ -167,8 +168,16 @@ func Test_smoothscroll_number() call term_sendkeys(buf, "\<C-Y>") call VerifyScreenDump(buf, 'Test_smooth_number_6', {}) - call term_sendkeys(buf, ":call DoRel()\<CR>") + call term_sendkeys(buf, ":botright split\<CR>gg") call VerifyScreenDump(buf, 'Test_smooth_number_7', {}) + call term_sendkeys(buf, "\<C-E>") + call VerifyScreenDump(buf, 'Test_smooth_number_8', {}) + call term_sendkeys(buf, "\<C-E>") + call VerifyScreenDump(buf, 'Test_smooth_number_9', {}) + call term_sendkeys(buf, ":close\<CR>") + + call term_sendkeys(buf, ":call DoRel()\<CR>") + call VerifyScreenDump(buf, 'Test_smooth_number_10', {}) call StopVimInTerminal(buf) endfunc |