Escape # in :Glog

Closes #265.
This commit is contained in:
Tim Pope
2012-11-04 17:28:25 -05:00
parent 3f703b6e03
commit 003f38c6a4

View File

@@ -1066,7 +1066,7 @@ function! s:Log(cmd,...)
let dir = getcwd()
try
execute cd.'`=s:repo().tree()`'
let &grepprg = escape(call(s:repo().git_command,cmd,s:repo()),'%')
let &grepprg = escape(call(s:repo().git_command,cmd,s:repo()),'%#')
let &grepformat = '%f::%m'
exe a:cmd
finally