Mercurial > vim
comparison src/testdir/test_search.vim @ 18693:d7c47e45bcc3 v8.1.2338
patch 8.1.2338: using Visual mark sith :s gives E20 if not set
Commit: https://github.com/vim/vim/commit/c672525b487992306f69ceab093291ba3b8e4246
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 23 21:56:46 2019 +0100
patch 8.1.2338: using Visual mark sith :s gives E20 if not set
Problem: Using Visual mark sith :s gives E20 if not set.
Solution: Ignore errors when handling 'incsearch'. (closes https://github.com/vim/vim/issues/3837)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 23 Nov 2019 22:00:04 +0100 |
parents | 0dcc2ee838dd |
children | ed246d4c46ba |
comparison
equal
deleted
inserted
replaced
18692:e83c4f346222 | 18693:d7c47e45bcc3 |
---|---|
981 call VerifyScreenDump(buf, 'Test_incsearch_substitute_11', {}) | 981 call VerifyScreenDump(buf, 'Test_incsearch_substitute_11', {}) |
982 call term_sendkeys(buf, "\<BS>") | 982 call term_sendkeys(buf, "\<BS>") |
983 call VerifyScreenDump(buf, 'Test_incsearch_substitute_12', {}) | 983 call VerifyScreenDump(buf, 'Test_incsearch_substitute_12', {}) |
984 call term_sendkeys(buf, "\<Esc>") | 984 call term_sendkeys(buf, "\<Esc>") |
985 call VerifyScreenDump(buf, 'Test_incsearch_substitute_13', {}) | 985 call VerifyScreenDump(buf, 'Test_incsearch_substitute_13', {}) |
986 call term_sendkeys(buf, ":%bwipe!\<CR>") | |
987 call term_sendkeys(buf, ":only!\<CR>") | |
988 | |
989 " get :'<,'>s command in history | |
990 call term_sendkeys(buf, ":set cmdheight=2\<CR>") | |
991 call term_sendkeys(buf, "aasdfasdf\<Esc>") | |
992 call term_sendkeys(buf, "V:s/a/b/g\<CR>") | |
993 " Using '<,'> does not give E20 | |
994 call term_sendkeys(buf, ":new\<CR>") | |
995 call term_sendkeys(buf, "aasdfasdf\<Esc>") | |
996 call term_sendkeys(buf, ":\<Up>\<Up>") | |
997 call VerifyScreenDump(buf, 'Test_incsearch_substitute_14', {}) | |
998 call term_sendkeys(buf, "<Esc>") | |
986 | 999 |
987 call StopVimInTerminal(buf) | 1000 call StopVimInTerminal(buf) |
988 call delete('Xis_subst_script') | 1001 call delete('Xis_subst_script') |
989 endfunc | 1002 endfunc |
990 | 1003 |