motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit 9bbea8a2a1e2bfda3119ab513f45a352c482e367 (tree)
parent 882597d17ef14e6430426347aa8dda9f3a2f6461
Author: Tim Pope <code@tpope.net>
Date:   Tue,  4 Jan 2011 15:04:47 -0500

Work around Vim parser idiosyncrasy

Diffstat:
Mplugin/fugitive.vim | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 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