Fix trailing blank line when editing index files
I can't consistently reproduce this, but a binary write is the logical thing to do in this case, and seems to work.
This commit is contained in:
parent
a38f25f78b
commit
4453370768
@ -1632,7 +1632,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 writefile(split(system(prefix.a:cmd), "\n", 1), tmp)
|
call writefile(split(system(prefix.a:cmd), "\n", 1), tmp, 'b')
|
||||||
finally
|
finally
|
||||||
if exists('old_index')
|
if exists('old_index')
|
||||||
let $GIT_INDEX_FILE = old_index
|
let $GIT_INDEX_FILE = old_index
|
||||||
|
Loading…
x
Reference in New Issue
Block a user