mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 11:33:47 -05:00
Fix typo and debugging statement in :Gwrite
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user