Prevent stack trace of search errors.

This commit is contained in:
Orson Peters 2015-04-23 00:27:56 +02:00
parent c4f9f159e6
commit 655dd3e2be

View File

@ -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)