From 8ae47ddf63bdc6e880eac2f5752da137507a34c0 Mon Sep 17 00:00:00 2001 From: Aufar Gilbran Date: Tue, 11 Aug 2020 00:49:12 +0800 Subject: vim-patch:8.1.0279: 'incsearch' highlighting does not skip white space Problem: 'incsearch' highlighting does not skip white space. Solution: Skip white space after the command. (issue vim/vim#3321) https://github.com/vim/vim/commit/2b926fcb3c5d8bd09a219009336bbec7c66ae67e --- src/nvim/testdir/test_search.vim | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/nvim/testdir') diff --git a/src/nvim/testdir/test_search.vim b/src/nvim/testdir/test_search.vim index c2584f99b9..0b403f8d2f 100644 --- a/src/nvim/testdir/test_search.vim +++ b/src/nvim/testdir/test_search.vim @@ -643,8 +643,14 @@ func Test_incsearch_substitute_dump() call term_sendkeys(buf, ':5,2s/foo') sleep 100m call VerifyScreenDump(buf, 'Test_incsearch_substitute_04', {}) + call term_sendkeys(buf, "\") + " White space after the command is skipped + call term_sendkeys(buf, ':2,3sub /fo') + sleep 100m + call VerifyScreenDump(buf, 'Test_incsearch_substitute_05', {}) call term_sendkeys(buf, "\") + call StopVimInTerminal(buf) call delete('Xis_subst_script') endfunc -- cgit