Clean up stray buffer().name()

This commit is contained in:
Tim Pope 2012-04-03 07:33:18 -04:00
parent 39012290b8
commit 49e6c2b676

View File

@ -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