Fix reloading renamed file

This commit is contained in:
Artem Baguinski 2014-09-25 11:08:53 +02:00
parent 4f1e6ecb05
commit 2fd0aa3ec7

View File

@ -89,7 +89,7 @@ function! s:promptToRenameBuffer(bufnum, msg, newFileName)
" display a buffer for a new filename.
let s:originalTabNumber = tabpagenr()
let s:originalWindowNumber = winnr()
exec "tabdo windo if winbufnr(0) == " . a:bufnum . " | exec \":e! " . quotedFileName . "\" | endif"
exec "tabdo windo if winbufnr(0) == " . a:bufnum . " | exec \":e! " . a:newFileName . "\" | endif"
exec "tabnext " . s:originalTabNumber
exec s:originalWindowNumber . "wincmd w"
" 3. We don't need a previous buffer anymore