summaryrefslogtreecommitdiffstats
path: root/autoload/cargo
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/cargo')
-rw-r--r--autoload/cargo/quickfix.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/autoload/cargo/quickfix.vim b/autoload/cargo/quickfix.vim
index 9eb204fc..ac66d298 100644
--- a/autoload/cargo/quickfix.vim
+++ b/autoload/cargo/quickfix.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1
+ finish
+endif
+
function! cargo#quickfix#CmdPre() abort
if &filetype ==# 'rust' && get(b:, 'current_compiler', '') ==# 'cargo'
" Preserve the current directory, and 'lcd' to the nearest Cargo file.
@@ -26,5 +28,3 @@ function! cargo#quickfix#CmdPost() abort
endfunction
" vim: set et sw=4 sts=4 ts=8:
-
-endif