Skip to content

Commit

Permalink
textobj: escape files for motion as well
Browse files Browse the repository at this point in the history
  • Loading branch information
fatih committed May 21, 2016
1 parent d909e2e commit eb19cc5
Showing 1 changed file with 2 additions and 2 deletions.
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 eb19cc5

Please sign in to comment.