comparison src/testdir/test_search.vim @ 20164:2dd1ac2c48f4 v8.2.0637

patch 8.2.0637: incsearch highlighting does not work for ":sort!" Commit: https://github.com/vim/vim/commit/333015a46e916f566763ec44ae8669c0378767d9 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 25 15:54:16 2020 +0200 patch 8.2.0637: incsearch highlighting does not work for ":sort!" Problem: Incsearch highlighting does not work for ":sort!". Solution: Skip over the exclamation point. (closes https://github.com/vim/vim/issues/5983)
author Bram Moolenaar <Bram@vim.org>
date Sat, 25 Apr 2020 16:00:04 +0200
parents 0b35a7ffceb2
children a4bd28e2cf1d
comparison
equal deleted inserted replaced
20163:d7e064056b24 20164:2dd1ac2c48f4
1134 let buf = RunVimInTerminal('-S Xis_sort_script', {'rows': 9, 'cols': 70}) 1134 let buf = RunVimInTerminal('-S Xis_sort_script', {'rows': 9, 'cols': 70})
1135 " Give Vim a chance to redraw to get rid of the spaces in line 2 caused by 1135 " Give Vim a chance to redraw to get rid of the spaces in line 2 caused by
1136 " the 'ambiwidth' check. 1136 " the 'ambiwidth' check.
1137 sleep 100m 1137 sleep 100m
1138 1138
1139 " Need to send one key at a time to force a redraw.
1140 call term_sendkeys(buf, ':sort ni u /on') 1139 call term_sendkeys(buf, ':sort ni u /on')
1141 call VerifyScreenDump(buf, 'Test_incsearch_sort_01', {}) 1140 call VerifyScreenDump(buf, 'Test_incsearch_sort_01', {})
1141 call term_sendkeys(buf, "\<Esc>")
1142
1143 call term_sendkeys(buf, ':sort! /on')
1144 call VerifyScreenDump(buf, 'Test_incsearch_sort_02', {})
1142 call term_sendkeys(buf, "\<Esc>") 1145 call term_sendkeys(buf, "\<Esc>")
1143 1146
1144 call StopVimInTerminal(buf) 1147 call StopVimInTerminal(buf)
1145 call delete('Xis_sort_script') 1148 call delete('Xis_sort_script')
1146 endfunc 1149 endfunc