From b75a131805b07a9f51a0d9078beef02481c1a80c Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 9 May 2011 13:07:39 -0400 Subject: [PATCH] Drop noautowrite rendered irrelevant by system() --- plugin/fugitive.vim | 3 --- 1 file changed, 3 deletions(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 0f35c85..c0fa533 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -1609,7 +1609,6 @@ endfunction function! s:ReplaceCmd(cmd,...) abort let fn = bufname('') let tmp = tempname() - let aw = &autowrite let prefix = '' try if a:0 && a:1 != '' @@ -1620,10 +1619,8 @@ function! s:ReplaceCmd(cmd,...) abort let prefix = 'env GIT_INDEX_FILE='.s:shellesc(a:1).' ' endif endif - set noautowrite call system(prefix.a:cmd.' > '.tmp) finally - let &autowrite = aw if exists('old_index') let $GIT_INDEX_FILE = old_index endif