Fix history browsing on csh and Windows
This commit is contained in:
parent
b75a131805
commit
216c85afe0
@ -1619,7 +1619,7 @@ function! s:ReplaceCmd(cmd,...) abort
|
|||||||
let prefix = 'env GIT_INDEX_FILE='.s:shellesc(a:1).' '
|
let prefix = 'env GIT_INDEX_FILE='.s:shellesc(a:1).' '
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
call system(prefix.a:cmd.' > '.tmp)
|
call writefile(split(system(prefix.a:cmd), "\n", 1), tmp)
|
||||||
finally
|
finally
|
||||||
if exists('old_index')
|
if exists('old_index')
|
||||||
let $GIT_INDEX_FILE = old_index
|
let $GIT_INDEX_FILE = old_index
|
||||||
|
Loading…
Reference in New Issue
Block a user