Skip to content

Commit

Permalink
Merge pull request #862 from fatih/fix-lint-escape
Browse files Browse the repository at this point in the history
lint: escape directory for shell invocation
  • Loading branch information
fatih committed May 21, 2016
2 parents c1e9761 + eb19cc5 commit dc14967
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion autoload/go/lint.vim
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ endif

function! go#lint#Gometa(autosave, ...) abort
if a:0 == 0
let goargs = expand('%:p:h')
let goargs = shellescape(expand('%:p:h'))
else
let goargs = go#util#Shelljoin(a:000)
endif
Expand Down
4 changes: 2 additions & 2 deletions autoload/go/textobj.vim
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ endif
function! go#textobj#Function(mode)
let offset = go#util#OffsetCursor()

let fname = expand("%:p")
let fname = shellescape(expand("%:p"))
if &modified
" Write current unsaved buffer to a temp file and use the modified content
let l:tmpname = tempname()
Expand Down Expand Up @@ -103,7 +103,7 @@ function! go#textobj#FunctionJump(mode, direction)

let offset = go#util#OffsetCursor()

let fname = expand("%:p")
let fname = shellescape(expand("%:p"))
if &modified
" Write current unsaved buffer to a temp file and use the modified content
let l:tmpname = tempname()
Expand Down

0 comments on commit dc14967

Please sign in to comment.