Skip to content

Commit

Permalink
Use -z for splitting alias config. (#850)
Browse files Browse the repository at this point in the history
  • Loading branch information
tweekmonster authored and tpope committed Oct 21, 2016
1 parent aac85a2 commit 58ed86e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/fugitive.vim
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,8 @@ endfun
function! s:repo_aliases() dict abort
if !has_key(self,'_aliases')
let self._aliases = {}
for line in split(self.git_chomp('config','--get-regexp','^alias[.]'),"\n")
let self._aliases[matchstr(line,'\.\zs\S\+')] = matchstr(line,' \zs.*')
for line in split(self.git_chomp('config','-z','--get-regexp','^alias[.]'),"\1")
let self._aliases[matchstr(line, '\.\zs.\{-}\ze\n')] = matchstr(line, '\n\zs.*')
endfor
endif
return self._aliases
Expand Down

0 comments on commit 58ed86e

Please sign in to comment.