From 216c85afe0a3d3b57dc717c098334fd59afeb13e Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 9 May 2011 13:31:19 -0400 Subject: [PATCH] Fix history browsing on csh and Windows --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index c0fa533..ec08266 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -1619,7 +1619,7 @@ function! s:ReplaceCmd(cmd,...) abort let prefix = 'env GIT_INDEX_FILE='.s:shellesc(a:1).' ' endif endif - call system(prefix.a:cmd.' > '.tmp) + call writefile(split(system(prefix.a:cmd), "\n", 1), tmp) finally if exists('old_index') let $GIT_INDEX_FILE = old_index