From 49e6c2b676fbb6aadaf3080828ea71633d05cd3b Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 3 Apr 2012 07:33:18 -0400 Subject: [PATCH] Clean up stray buffer().name() --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index bad2b0c..1aeac25 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -1387,7 +1387,7 @@ function! s:Move(force,destination) let destination = destination[strlen(s:repo().tree('')):-1] endif endif - if isdirectory(s:buffer().name()) + if isdirectory(s:buffer().spec()) " Work around Vim parser idiosyncrasy let discarded = s:buffer().setvar('&swapfile',0) endif