comparison src/testdir/test_search.vim @ 14528:58ca11610819 v8.1.0277

patch 8.1.0277: 'incsearch' highlighting wrong in a few cases commit https://github.com/vim/vim/commit/c7f08b7ee1c1ff2080d425c2fcdb6907c26fc98e Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 12 17:39:14 2018 +0200 patch 8.1.0277: 'incsearch' highlighting wrong in a few cases Problem: 'incsearch' highlighting wrong in a few cases. Solution: Fix using last search pattern. Restore highlighting when changing command. (issue #3321)
author Christian Brabandt <cb@256bit.org>
date Sun, 12 Aug 2018 17:45:04 +0200
parents 66b9514b5a99
children 60e0022e6e5d
comparison
equal deleted inserted replaced
14527:6fc131355f0d 14528:58ca11610819
837 " Give Vim a chance to redraw to get rid of the spaces in line 2 caused by 837 " Give Vim a chance to redraw to get rid of the spaces in line 2 caused by
838 " the 'ambiwidth' check. 838 " the 'ambiwidth' check.
839 sleep 100m 839 sleep 100m
840 840
841 " Need to send one key at a time to force a redraw. 841 " Need to send one key at a time to force a redraw.
842 " Select three lines at the cursor with typed pattern.
842 call term_sendkeys(buf, ':.,.+2s/') 843 call term_sendkeys(buf, ':.,.+2s/')
843 sleep 100m 844 sleep 100m
844 call term_sendkeys(buf, 'f') 845 call term_sendkeys(buf, 'f')
845 sleep 100m 846 sleep 100m
846 call term_sendkeys(buf, 'o') 847 call term_sendkeys(buf, 'o')
847 sleep 100m 848 sleep 100m
848 call term_sendkeys(buf, 'o') 849 call term_sendkeys(buf, 'o')
850 sleep 100m
849 call VerifyScreenDump(buf, 'Test_incsearch_substitute_01', {}) 851 call VerifyScreenDump(buf, 'Test_incsearch_substitute_01', {})
852 call term_sendkeys(buf, "\<Esc>")
853
854 " Select three lines at the cursor using previous pattern.
855 call term_sendkeys(buf, "/foo\<CR>")
856 sleep 100m
857 call term_sendkeys(buf, ':.,.+2s//')
858 sleep 100m
859 call VerifyScreenDump(buf, 'Test_incsearch_substitute_02', {})
860
861 " Deleting last slash should remove the match.
862 call term_sendkeys(buf, "\<BS>")
863 sleep 100m
864 call VerifyScreenDump(buf, 'Test_incsearch_substitute_03', {})
850 865
851 call term_sendkeys(buf, "\<Esc>") 866 call term_sendkeys(buf, "\<Esc>")
852 call StopVimInTerminal(buf) 867 call StopVimInTerminal(buf)
853 call delete('Xis_subst_script') 868 call delete('Xis_subst_script')
854 endfunc 869 endfunc