diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-07-08 13:19:31 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-07-08 13:19:31 +0200 |
commit | 30441bb3d5fa73f888b09684db3f54ff5ab48dbc (patch) | |
tree | a1061744b892daf8b62f10917039631ca457fda8 /src/testdir/test_listchars.vim | |
parent | 41fb723ee97baa2f095cde601a5a144b168b7a6b (diff) | |
download | vim-git-30441bb3d5fa73f888b09684db3f54ff5ab48dbc.tar.gz |
patch 8.2.3122: with 'nowrap' cursor position is unexected in narrow windowv8.2.3122
Problem: With 'nowrap' cursor position is unexected in narrow window.
(Leonid V. Fedorenchik)
Solution: Put cursor on the last non-empty line. (closes #8525)
Diffstat (limited to 'src/testdir/test_listchars.vim')
-rw-r--r-- | src/testdir/test_listchars.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/testdir/test_listchars.vim b/src/testdir/test_listchars.vim index 7068be740..160d247c0 100644 --- a/src/testdir/test_listchars.vim +++ b/src/testdir/test_listchars.vim @@ -381,6 +381,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) |