commit a6439f6aa06c23e196f4d6310dad8a4ae3ab17ff (tree)
parent 4c1562c15b07d0842cad18fe61301287045975fb
Author: Tim Pope <code@tpope.net>
Date: Thu, 15 Oct 2009 12:52:19 -0400
Fix typo and debugging statement in :Gwrite
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim
@@ -593,7 +593,6 @@ function! s:Write(force,...) abort
endfor
endfor
if !exists('did')
- echoerr 'fail'
call writefile(readfile(temp,'b'),file,'b')
endif
else
@@ -629,7 +628,7 @@ function! s:Write(force,...) abort
try
let lnum = line('.')
let last = line('$')
- silent $read `=file'
+ silent $read `=file`
silent execute '1,'.last.'delete_'
silent execute lnum
set nomodified