comparison src/testdir/test_highlight.vim @ 15991:f362d695bcf9 v8.1.1001

patch 8.1.1001: Visual area not correct when using 'cursorline' commit https://github.com/vim/vim/commit/8156ed37558231a8167a1a61a147713d84c9af59 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 9 11:46:15 2019 +0100 patch 8.1.1001: Visual area not correct when using 'cursorline' Problem: Visual area not correct when using 'cursorline'. Solution: Update w_last_cursorline also in Visual mode. (Hirohito Higashi, closes #4086)
author Bram Moolenaar <Bram@vim.org>
date Sat, 09 Mar 2019 12:00:05 +0100
parents adc6442118b8
children 96e93765d0d6
comparison
equal deleted inserted replaced
15990:5c53c3aced6a 15991:f362d695bcf9
550 550
551 " clean up 551 " clean up
552 call StopVimInTerminal(buf) 552 call StopVimInTerminal(buf)
553 call delete('Xtest_cursorline_yank') 553 call delete('Xtest_cursorline_yank')
554 endfunc 554 endfunc
555
556 func Test_cursorline_with_visualmode()
557 if !CanRunVimInTerminal()
558 return
559 endif
560
561 call writefile([
562 \ 'set cul',
563 \ 'call setline(1, repeat(["abc"], 50))',
564 \ ], 'Xtest_cursorline_with_visualmode')
565 let buf = RunVimInTerminal('-S Xtest_cursorline_with_visualmode', {'rows': 12})
566 call term_wait(buf)
567 call term_sendkeys(buf, "V\<C-f>kkkjk")
568
569 call VerifyScreenDump(buf, 'Test_cursorline_with_visualmode_01', {})
570
571 " clean up
572 call StopVimInTerminal(buf)
573 call delete('Xtest_cursorline_with_visualmode')
574 endfunc