Fix typo and debugging statement in :Gwrite

This commit is contained in:
Tim Pope 2009-10-15 12:52:19 -04:00
parent 4c1562c15b
commit a6439f6aa0

View File

@ -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