mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 05:13:53 -05:00
Fix command preparation bug
This commit is contained in:
@@ -499,10 +499,12 @@ function! s:PreparePathArgs(cmd, dir, literal, explicit) abort
|
|||||||
endif
|
endif
|
||||||
let split = index(a:cmd, '--')
|
let split = index(a:cmd, '--')
|
||||||
for i in range(split < 0 ? len(a:cmd) : split)
|
for i in range(split < 0 ? len(a:cmd) : split)
|
||||||
if a:literal
|
if type(a:cmd[i]) == type(0)
|
||||||
let a:cmd[i] = fugitive#Path(bufname(a:cmd[i]), './', a:dir)
|
if a:literal
|
||||||
else
|
let a:cmd[i] = fugitive#Path(bufname(a:cmd[i]), './', a:dir)
|
||||||
let a:cmd[i] = fugitive#Path(bufname(a:cmd[i]), ':(top,literal)', a:dir)
|
else
|
||||||
|
let a:cmd[i] = fugitive#Path(bufname(a:cmd[i]), ':(top,literal)', a:dir)
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
if split < 0
|
if split < 0
|
||||||
|
|||||||
Reference in New Issue
Block a user