mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-16 15:23:51 -05:00
Use -z for splitting alias config. (#850)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user