aboutsummaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/vim-ripgrep.vim4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugin/vim-ripgrep.vim b/plugin/vim-ripgrep.vim
index fc1bd58..254a478 100644
--- a/plugin/vim-ripgrep.vim
+++ b/plugin/vim-ripgrep.vim
@@ -36,9 +36,7 @@ fun! s:PerformSearch(args)
silent exe 'grep! ' . l:opts . a:args
- if len(getqflist())
- exe 'copen' | redraw!
- else
+ if !len(getqflist())
cclose | redraw!
echo 'No match found for ' . a:args
endif