Skip to content

Commit a258f4b

Browse files
committed
Keep undocumented ignore_exception option
It's used in plugins.
1 parent dd27cd6 commit a258f4b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

autoload/EasyMotion.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ function! EasyMotion#init()
5353
let s:EasyMotion_is_cancelled = 0
5454
" 0 -> Success
5555
" 1 -> Cancel
56+
let g:EasyMotion_ignore_exception = 0
5657
return ""
5758
endfunction
5859
"}}}
@@ -1522,7 +1523,8 @@ function! s:EasyMotion(regexp, direction, visualmode, is_inclusive, ...) " {{{
15221523
redraw
15231524

15241525
" Show exception message
1525-
if g:EasyMotion_verbose == 1
1526+
" The verbose option will take precedence
1527+
if g:EasyMotion_verbose == 1 && g:EasyMotion_ignore_exception != 1
15261528
echo v:exception
15271529
endif
15281530

0 commit comments

Comments
 (0)