Skip to content

Commit

Permalink
Escape filename in :argadd call
Browse files Browse the repository at this point in the history
Otherwise file names with spaces register as multiple files.
  • Loading branch information
rwstauner committed Jul 25, 2015
1 parent a1381d0 commit c66d0c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/file_line.vim
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function! s:handle_arg()
if fname != argname
let argidx = argidx()
exec (argidx+1).'argdelete'
exec (argidx)'argadd' fname
exec (argidx)'argadd' fnameescape(fname)
endif
endfunction

Expand Down

0 comments on commit c66d0c8

Please sign in to comment.