Permalink
Browse files

[BUG] wildignore breaks Gwrite

When the file you're editing matches the vim variable
wildignore Gwrite fails.
  • Loading branch information...
1 parent 3901229 commit 3f2931f5eebfbe950b5bc9c9e4ebe9442db44412 @flatcap committed Apr 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugin/fugitive.vim
View
@@ -1205,7 +1205,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

0 comments on commit 3f2931f

Please sign in to comment.