Skip to content

Commit 5d6e01c

Browse files
author
Damien Radtke
committed
---
yaml --- r: 160527 b: refs/heads/auto c: 75e4d95 h: refs/heads/master i: 160525: 7aca1c7 160523: bc2e5f2 160519: f423470 160511: 6ac63fa v: v3
1 parent f26d7ef commit 5d6e01c

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: 0207e25d70b1a5733b170ac9f16a9702db8ee8ed
13+
refs/heads/auto: 75e4d9583832c158a9c0927cdb087e4555434993
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/etc/vim/compiler/cargo.vim

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,13 @@ endif
2323
" support variations like 'cargo.toml'.
2424
let s:cargo_manifest_name = get(g:, 'cargo_manifest_name', 'Cargo.toml')
2525

26+
function! s:is_absolute(path)
27+
return a:path[0] == '/' || a:path =~ '[A-Z]\+:'
28+
endfunction
29+
2630
let s:local_manifest = findfile(s:cargo_manifest_name, '.;')
2731
if s:local_manifest != ''
28-
let s:local_manifest = fnamemodify(s:local_manifest, ':p:h').'/'
32+
let s:local_manifest = fnamemodify(s:local_manifest, ':p:h').'/'
2933
augroup cargo
3034
au!
3135
au QuickfixCmdPost make call s:FixPaths()
@@ -43,14 +47,14 @@ if s:local_manifest != ''
4347
let manifest = m[1].'/'
4448
" Manually strip another slash if needed; usually just an
4549
" issue on Windows.
46-
if manifest =~ '^/[A-Z]:/'
50+
if manifest =~ '^/[A-Z]\+:/'
4751
let manifest = manifest[1:]
4852
endif
4953
endif
5054
continue
5155
endif
5256
let filename = bufname(qf.bufnr)
53-
if filereadable(filename)
57+
if s:is_absolute(filename)
5458
continue
5559
endif
5660
let qf.filename = simplify(manifest.filename)

branches/auto/src/etc/vim/doc/rust.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@ g:ftplugin_rust_source_path~
7979
let g:ftplugin_rust_source_path = $HOME.'/dev/rust'
8080
<
8181

82+
*g:cargo_manifest_name*
83+
g:cargo_manifest_name~
84+
Set this option to the name of the manifest file for your projects. If
85+
not specified it defaults to 'Cargo.toml' : >
86+
let g:cargo_manifest_name = 'Cargo.toml'
87+
<
88+
8289
==============================================================================
8390
COMMANDS *rust-commands*
8491

0 commit comments

Comments
 (0)