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
|
endfunction
|
||||||
|
|
||||||
function! repeat#run(count)
|
function! repeat#run(count)
|
||||||
|
try
|
||||||
if g:repeat_tick == b:changedtick
|
if g:repeat_tick == b:changedtick
|
||||||
let r = ''
|
let r = ''
|
||||||
if g:repeat_reg[0] ==# g:repeat_sequence && !empty(g:repeat_reg[1])
|
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')
|
call feedkeys((a:count ? a:count : '') . '.', 'ni')
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
catch /^Vim\%((\a\+)\)\=:E\%(384\|385\|486\)/
|
||||||
|
echohl ErrorMsg | echo substitute(v:exception, '^Vim\%((\a\+)\)\=:', '', '') | echohl None
|
||||||
|
endtry
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! repeat#wrap(command,count)
|
function! repeat#wrap(command,count)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user