Skip to content

Commit

Permalink
def: quote the file argument completely for tcsh
Browse files Browse the repository at this point in the history
Fixes #868
  • Loading branch information
fatih committed May 21, 2016
1 parent 8b1c0e9 commit 92632a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoload/go/def.vim
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ function! go#def#Jump(mode)
endif

let fname = fnamemodify(expand("%"), ':p:gs?\\?/?')
let command = printf("%s %s definition %s:#%s", bin_path, flags, shellescape(fname), go#util#OffsetCursor())
let fname = shellescape(fname.':#'.go#util#OffsetCursor())
let command = printf("%s %s definition %s", bin_path, flags, fname)

let out = go#util#System(command)
if go#util#ShellError() != 0
Expand Down

0 comments on commit 92632a0

Please sign in to comment.