Fix typo and debugging statement in :Gwrite
This commit is contained in:
parent
4c1562c15b
commit
a6439f6aa0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user