diff src/testdir/test_listchars.vim @ 25172:406ab8d0bc0f v8.2.3122

patch 8.2.3122: with 'nowrap' cursor position is unexected in narrow window Commit: https://github.com/vim/vim/commit/30441bb3d5fa73f888b09684db3f54ff5ab48dbc Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jul 8 13:19:31 2021 +0200 patch 8.2.3122: with 'nowrap' cursor position is unexected in narrow window Problem: With 'nowrap' cursor position is unexected in narrow window. (Leonid V. Fedorenchik) Solution: Put cursor on the last non-empty line. (closes #8525)
author Bram Moolenaar <Bram@vim.org>
date Thu, 08 Jul 2021 13:30:04 +0200
parents ac54d215fbec
children 373278f5bd51
line wrap: on
line diff
--- 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)