diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index f2dc14d..700866d 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -1129,7 +1129,9 @@ function! s:Move(force,destination) endif endif if isdirectory(s:buffer().name()) - call s:buffer().setvar('&swapfile',0) + " Work around Vim parser idiosyncrasy + let b = s:buffer() + call b.setvar('&swapfile',0) endif let message = call(s:repo().git_chomp_in_tree,['mv']+(a:force ? ['-f'] : [])+['--', s:buffer().path(), destination], s:repo()) if v:shell_error