mirror of
https://github.com/neovim/neovim.git
synced 2026-07-30 04:18:02 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user