diff options
| -rw-r--r-- | core/vimrc | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -203,7 +203,7 @@ function! RustCrate() abort | |||
| 203 | endfunction | 203 | endfunction |
| 204 | function! s:RustAddDetached() abort | 204 | function! s:RustAddDetached() abort |
| 205 | let l:p = expand('%:p') | 205 | let l:p = expand('%:p') |
| 206 | if empty(l:p) || index(g:ra_init.detachedFiles, l:p) >= 0 | return 0 | endif | 206 | if empty(l:p) || !isdirectory(fnamemodify(l:p, ':h')) || index(g:ra_init.detachedFiles, l:p) >= 0 | return 0 | endif |
| 207 | call add(g:ra_init.detachedFiles, l:p) | 207 | call add(g:ra_init.detachedFiles, l:p) |
| 208 | return 1 | 208 | return 1 |
| 209 | endfunction | 209 | endfunction |
