From 79b8f21497f49fbb872b26d0003746287c52f3fb Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Sun, 16 Apr 2023 17:57:57 +0200 Subject: Don't open the quickfix list automatically Some users may not want the quickfix list to open automatically as it diverges from vim's default behaviour. We could add a toggle for this, but there are plugins such as [1] that handle this case more generally, so let's just remove the feature entirely. [1] https://github.com/romainl/vim-qf --- plugin/vim-ripgrep.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'plugin') 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 -- cgit v1.2.3-2-gb3c3