Prevent stack trace of search errors.
This commit is contained in:
parent
c4f9f159e6
commit
655dd3e2be
@ -74,6 +74,7 @@ function! repeat#setreg(sequence,register)
|
||||
endfunction
|
||||
|
||||
function! repeat#run(count)
|
||||
try
|
||||
if g:repeat_tick == b:changedtick
|
||||
let r = ''
|
||||
if g:repeat_reg[0] ==# g:repeat_sequence && !empty(g:repeat_reg[1])
|
||||
@ -102,6 +103,9 @@ function! repeat#run(count)
|
||||
call feedkeys((a:count ? a:count : '') . '.', 'ni')
|
||||
endif
|
||||
endif
|
||||
catch /^Vim\%((\a\+)\)\=:E\%(384\|385\|486\)/
|
||||
echohl ErrorMsg | echo substitute(v:exception, '^Vim\%((\a\+)\)\=:', '', '') | echohl None
|
||||
endtry
|
||||
endfunction
|
||||
|
||||
function! repeat#wrap(command,count)
|
||||
|
Loading…
Reference in New Issue
Block a user