comparison 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
comparison
equal deleted inserted replaced
25171:fcd571f05dbc 25172:406ab8d0bc0f
379 call VerifyScreenDump(buf, 'Test_listchars_03', {}) 379 call VerifyScreenDump(buf, 'Test_listchars_03', {})
380 call term_sendkeys(buf, "\<C-W>>") 380 call term_sendkeys(buf, "\<C-W>>")
381 call VerifyScreenDump(buf, 'Test_listchars_04', {}) 381 call VerifyScreenDump(buf, 'Test_listchars_04', {})
382 call term_sendkeys(buf, "\<C-W>>") 382 call term_sendkeys(buf, "\<C-W>>")
383 call VerifyScreenDump(buf, 'Test_listchars_05', {}) 383 call VerifyScreenDump(buf, 'Test_listchars_05', {})
384 call term_sendkeys(buf, "\<C-W>h")
385 call term_sendkeys(buf, ":set nowrap foldcolumn=4\<CR>")
386 call term_sendkeys(buf, "15\<C-W><")
387 call VerifyScreenDump(buf, 'Test_listchars_06', {})
388 call term_sendkeys(buf, "4\<C-W><")
389 call VerifyScreenDump(buf, 'Test_listchars_07', {})
384 390
385 " clean up 391 " clean up
386 call StopVimInTerminal(buf) 392 call StopVimInTerminal(buf)
387 call delete('XTest_listchars') 393 call delete('XTest_listchars')
388 endfunc 394 endfunc