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.
50eb16c3b2
This commit is contained in:
Aufar Gilbran
2020-08-19 00:54:50 +08:00
parent b0042cafc0
commit 112092fa15
3 changed files with 22 additions and 14 deletions

View File

@@ -796,6 +796,10 @@ func Test_keep_last_search_pattern()
call feedkeys(":/foo/s//\<Esc>", 'ntx')
call assert_equal('bar', @/)
" no error message if pattern not found
call feedkeys(":/xyz/s//\<Esc>", 'ntx')
call assert_equal('bar', @/)
bwipe!
call test_override("ALL", 0)
set noincsearch