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