Mercurial > vim
diff src/testdir/test_scroll_opt.vim @ 32349:8323e235ff44 v9.0.1506
patch 9.0.1506: line number not displayed when using 'smoothscroll'
Commit: https://github.com/vim/vim/commit/88bb3e0a48f160134bdea98cd2b8bd3af86f9d6f
Author: zeertzjq <zeertzjq@outlook.com>
Date: Tue May 2 20:52:59 2023 +0100
patch 9.0.1506: line number not displayed when using 'smoothscroll'
Problem: Line number not displayed when using 'smoothscroll'.
Solution: Adjust condition for showing the line number. (closes https://github.com/vim/vim/issues/12333)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 02 May 2023 22:00:04 +0200 |
parents | d8fdafc4b390 |
children | 9ac987a467d5 |
line wrap: on
line diff
--- a/src/testdir/test_scroll_opt.vim +++ b/src/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, ":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_7', {}) + call VerifyScreenDump(buf, 'Test_smooth_number_10', {}) call StopVimInTerminal(buf) endfunc