Skip to content

Commit

Permalink
Catch E486 to prevent error after removing silent navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed May 11, 2018
1 parent b425bb4 commit 35f0127
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions plugin/interestingwords.vim
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,14 @@ function! WordNavigation(direction)
endif
call search(pat, searchFlag)
else
if (a:direction)
normal! n
else
normal! N
endif
try
if (a:direction)
normal! n
else
normal! N
endif
catch /E486/
endtry
endif
endfunction

Expand Down

0 comments on commit 35f0127

Please sign in to comment.