Skip to content

Commit

Permalink
Clean up stray buffer().name()
Browse files Browse the repository at this point in the history
  • Loading branch information
tpope committed Apr 3, 2012
1 parent 3901229 commit 49e6c2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/fugitive.vim
Expand Up @@ -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
Expand Down

0 comments on commit 49e6c2b

Please sign in to comment.