From 112092fa1598fbfa9dae723da5e52d2dec8da2f0 Mon Sep 17 00:00:00 2001 From: Aufar Gilbran Date: Wed, 19 Aug 2020 00:54:50 +0800 Subject: vim-patch:8.1.0392: error while typing :/foo/s// with 'incsearch' enabled Problem: Error while typing :/foo/s// with 'incsearch' enabled. Solution: Do not give search errors when highlighting matches. https://github.com/vim/vim/commit/50eb16c3b23235b21ce4494673a7741a9a196176 --- src/nvim/testdir/test_search.vim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/nvim/testdir') diff --git a/src/nvim/testdir/test_search.vim b/src/nvim/testdir/test_search.vim index 8741def3bf..ec4c15cd11 100644 --- a/src/nvim/testdir/test_search.vim +++ b/src/nvim/testdir/test_search.vim @@ -796,6 +796,10 @@ func Test_keep_last_search_pattern() call feedkeys(":/foo/s//\", 'ntx') call assert_equal('bar', @/) + " no error message if pattern not found + call feedkeys(":/xyz/s//\", 'ntx') + call assert_equal('bar', @/) + bwipe! call test_override("ALL", 0) set noincsearch -- cgit