diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-04-01 07:11:38 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-01 07:11:38 +0800 |
| commit | 8a6cf51a710585fee7edb9d1357791da30f31f44 (patch) | |
| tree | 09cea09f139567e60d5505e0905f997346d90933 /src/nvim/testdir | |
| parent | dc48330b9d51bffb314583bbe4073dfa1083d9a5 (diff) | |
| download | rneovim-8a6cf51a710585fee7edb9d1357791da30f31f44.tar.gz rneovim-8a6cf51a710585fee7edb9d1357791da30f31f44.tar.bz2 rneovim-8a6cf51a710585fee7edb9d1357791da30f31f44.zip | |
vim-patch:8.2.3122: with 'nowrap' cursor position is unexected in narrow window (#17935)
Problem: With 'nowrap' cursor position is unexected in narrow window.
(Leonid V. Fedorenchik)
Solution: Put cursor on the last non-empty line. (closes vim/vim#8525)
https://github.com/vim/vim/commit/30441bb3d5fa73f888b09684db3f54ff5ab48dbc
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_listchars.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_listchars.vim b/src/nvim/testdir/test_listchars.vim index c6e2ebd406..b239c9c6b5 100644 --- a/src/nvim/testdir/test_listchars.vim +++ b/src/nvim/testdir/test_listchars.vim @@ -542,6 +542,12 @@ func Test_listchars_foldcolumn() call VerifyScreenDump(buf, 'Test_listchars_04', {}) call term_sendkeys(buf, "\<C-W>>") call VerifyScreenDump(buf, 'Test_listchars_05', {}) + call term_sendkeys(buf, "\<C-W>h") + call term_sendkeys(buf, ":set nowrap foldcolumn=4\<CR>") + call term_sendkeys(buf, "15\<C-W><") + call VerifyScreenDump(buf, 'Test_listchars_06', {}) + call term_sendkeys(buf, "4\<C-W><") + call VerifyScreenDump(buf, 'Test_listchars_07', {}) " clean up call StopVimInTerminal(buf) |