We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5eb7b0 commit c28ed1bCopy full SHA for c28ed1b
autoload/cargo/quickfix.vim
@@ -1,5 +1,6 @@
1
function! cargo#quickfix#CmdPre() abort
2
- if &filetype ==# 'rust' && get(b:, 'current_compiler', '') ==# 'cargo'
+ if &filetype ==# 'rust' && get(b:, 'current_compiler', '') ==# 'cargo' &&
3
+ \ &makeprg =~ '\V\^cargo\ \.\*'
4
" Preserve the current directory, and 'lcd' to the nearest Cargo file.
5
let b:rust_compiler_cargo_qf_has_lcd = haslocaldir()
6
let b:rust_compiler_cargo_qf_prev_cd = getcwd()
0 commit comments