Skip to content

Commit

Permalink
Merge pull request #34 from myii/myii-patch-1
Browse files Browse the repository at this point in the history
Catch `E486` to prevent error after removing silent navigation
  • Loading branch information
Luis Vasconcellos committed May 12, 2018
2 parents b425bb4 + 6845a0a commit 7e3ec6a
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions plugin/interestingwords.vim
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,15 @@ 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/
echohl WarningMsg | echomsg "E486: Pattern not found: " . @/
endtry
endif
endfunction

Expand Down

0 comments on commit 7e3ec6a

Please sign in to comment.