Skip to content

Commit

Permalink
Merge pull request #329 from dwink/master
Browse files Browse the repository at this point in the history
Handle win32 search path separator & add win32 src path
  • Loading branch information
phildawes committed Aug 14, 2015
2 parents 7ae984f + 310d450 commit 22b452d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugin/racer.vim
Expand Up @@ -12,7 +12,8 @@
if !exists('g:racer_cmd')
let path = escape(expand('<sfile>:p:h'), '\') . '/../target/release/'
if isdirectory(path)
let $PATH .= ':' . path
let s:pathsep = has("win32") ? ';' : ':'
let $PATH .= s:pathsep . path
endif
let g:racer_cmd = 'racer'

Expand All @@ -29,6 +30,9 @@ if !exists('$RUST_SRC_PATH')
if isdirectory("/usr/src/rust/src")
let $RUST_SRC_PATH="/usr/src/rust/src"
endif
if isdirectory("C:\\rust\\src")
let $RUST_SRC_PATH="C:\\rust\\src"
endif
endif
if !isdirectory($RUST_SRC_PATH)
if exists('s:rust_src_default')
Expand Down

0 comments on commit 22b452d

Please sign in to comment.