From 5ecf44ca5a22e23122ea8c02d9a9a15e62a43d71 Mon Sep 17 00:00:00 2001 From: Ryan Coppolo Date: Wed, 2 Dec 2015 14:18:07 -0800 Subject: [PATCH] Highlight implicit search Previously `:Ag` would implicitly search for what was under the cursor, but not highlight the search even if `let g:ag_highlight=1` was set. --- autoload/ag.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/ag.vim b/autoload/ag.vim index 432ef444..f5318019 100644 --- a/autoload/ag.vim +++ b/autoload/ag.vim @@ -151,7 +151,7 @@ function! ag#Ag(cmd, args) " If highlighting is on, highlight the search keyword. if exists('g:ag_highlight') - let @/ = matchstr(a:args, "\\v(-)\@", 'n') end