[BUG] wildignore breaks Gwrite

When the file you're editing matches the vim variable
wildignore Gwrite fails.
This commit is contained in:
Richard Russon (flatcap) authored and Tim Pope committed 2012-04-05 23:15:08 -04:00
1 parent b978d9f0be
commit 693d32cdd4
1 file changed
+1 -1
+1 -1
View File
@@ -1211,7 +1211,7 @@ function! s:Write(force,...) abort
try
let lnum = line('.')
let last = line('$')
silent $read `=file`
silent execute '$read '.s:fnameescape(file)
silent execute '1,'.last.'delete_'
silent execute lnum
set nomodified