comparison src/testdir/test_match.vim @ 27626:95d6e3c9aa1e v8.2.4339

patch 8.2.4339: CTRL-A does not work properly with the cmdline popup menu Commit: https://github.com/vim/vim/commit/560dff49c0095111fc96b4b8dd7f4d269aba9473 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Thu Feb 10 19:52:10 2022 +0000 patch 8.2.4339: CTRL-A does not work properly with the cmdline popup menu Problem: CTRL-A does not work properly with the cmdline popup menu. Solution: Fix issues with CTRL-A. Add more tests for the cmdline popup menu. Remove TermWait() before VeriryScreenDump(). Refactor the cmdline popup code. (Yegappan Lakshmanan, closes #9735)
author Bram Moolenaar <Bram@vim.org>
date Thu, 10 Feb 2022 21:00:04 +0100
parents 89bc175b25a5
children adb0de8be4ce
comparison
equal deleted inserted replaced
27625:bba604950a7e 27626:95d6e3c9aa1e
357 call printf('%s]%s', repeat('x', 50), repeat('x', 70))->setline(1) 357 call printf('%s]%s', repeat('x', 50), repeat('x', 70))->setline(1)
358 call matchaddpos('ErrorMsg', [[1, 51]]) 358 call matchaddpos('ErrorMsg', [[1, 51]])
359 END 359 END
360 call writefile(lines, 'XscriptMatchLinebreak') 360 call writefile(lines, 'XscriptMatchLinebreak')
361 let buf = RunVimInTerminal('-S XscriptMatchLinebreak', #{rows: 10}) 361 let buf = RunVimInTerminal('-S XscriptMatchLinebreak', #{rows: 10})
362 call TermWait(buf)
363 call VerifyScreenDump(buf, 'Test_match_linebreak', {}) 362 call VerifyScreenDump(buf, 'Test_match_linebreak', {})
364 363
365 call StopVimInTerminal(buf) 364 call StopVimInTerminal(buf)
366 call delete('XscriptMatchLinebreak') 365 call delete('XscriptMatchLinebreak')
367 endfunc 366 endfunc
374 call setline(1, range(20)) 373 call setline(1, range(20))
375 call matchaddpos('ErrorMsg', [3]) 374 call matchaddpos('ErrorMsg', [3])
376 END 375 END
377 call writefile(lines, 'XmatchWithIncsearch') 376 call writefile(lines, 'XmatchWithIncsearch')
378 let buf = RunVimInTerminal('-S XmatchWithIncsearch', #{rows: 6}) 377 let buf = RunVimInTerminal('-S XmatchWithIncsearch', #{rows: 6})
379 call TermWait(buf)
380 call VerifyScreenDump(buf, 'Test_match_with_incsearch_1', {}) 378 call VerifyScreenDump(buf, 'Test_match_with_incsearch_1', {})
381 379
382 call term_sendkeys(buf, ":s/0") 380 call term_sendkeys(buf, ":s/0")
383 call VerifyScreenDump(buf, 'Test_match_with_incsearch_2', {}) 381 call VerifyScreenDump(buf, 'Test_match_with_incsearch_2', {})
384 382
415 call setline(1, "\tix") 413 call setline(1, "\tix")
416 call matchadd('ErrorMsg', '\t') 414 call matchadd('ErrorMsg', '\t')
417 END 415 END
418 call writefile(lines, 'XscriptMatchTabLinebreak') 416 call writefile(lines, 'XscriptMatchTabLinebreak')
419 let buf = RunVimInTerminal('-S XscriptMatchTabLinebreak', #{rows: 10}) 417 let buf = RunVimInTerminal('-S XscriptMatchTabLinebreak', #{rows: 10})
420 call TermWait(buf)
421 call VerifyScreenDump(buf, 'Test_match_tab_linebreak', {}) 418 call VerifyScreenDump(buf, 'Test_match_tab_linebreak', {})
422 419
423 call StopVimInTerminal(buf) 420 call StopVimInTerminal(buf)
424 call delete('XscriptMatchTabLinebreak') 421 call delete('XscriptMatchTabLinebreak')
425 endfunc 422 endfunc