Skip to content

Commit c32d168

Browse files
author
Scott Pierce
committed
Suppress error if term is not found when highlighting the terms
1 parent d7f223a commit c32d168

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/side-search.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ function! SideSearch(args) abort
189189

190190
" 1. go to top of file
191191
" 2. forward search the term
192-
execute "normal! ggn"
192+
silent! execute "normal! ggn"
193193

194194
" Turn on search highlight. Must be done this way.
195195
" Thanks: https://github.com/rking/ag.vim/blob/master/autoload/ag.vim#L153

0 commit comments

Comments
 (0)