Skip to content

Commit

Permalink
Fix #160 escape filename
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Feb 15, 2021
1 parent 83ba638 commit 2f48a66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/racer.vim
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function! racer#ShowDocumentation(tab)
call writefile(getline(1, '$'), b:tmpfname)
let fname = expand('%:p')
let cmd = racer#GetRacerCmd() . ' complete-with-snippet ' .
\ line('.') . ' ' . col . ' ' . fname . ' ' . b:tmpfname
\ line('.') . ' ' . col . ' "' . fname . '" "' . b:tmpfname . '"'
let res = system(cmd)
" Restore de cursor position
call winrestview(winview)
Expand Down Expand Up @@ -208,7 +208,7 @@ function! racer#GoToDefinition()
let tmpfname = tempname()
call writefile(getline(1, '$'), tmpfname)
let cmd = racer#GetRacerCmd() . ' find-definition ' .
\ line('.') . ' ' . col . ' ' . fname . ' ' . tmpfname
\ line('.') . ' ' . col . ' "' . fname . '" "' . b:tmpfname . '"'
let res = system(cmd)
let lines = split(res, '\n')
for line in lines
Expand Down

0 comments on commit 2f48a66

Please sign in to comment.