Skip to content

Commit 5f27abb

Browse files
committed
Allow multiple calls to VundleLog.
If it was loaded, unload the log buffer before editing it. Otherwise the editing command can "hang" if the user has `set hidden`. This problem was originally discovered with the VundleChangelog command and the analogous fix was applied in 7d9b10. See github issue #468 for more.
1 parent 088295d commit 5f27abb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

autoload/vundle/scripts.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ func! s:view_log()
5858
let s:log_file = tempname()
5959
endif
6060

61+
if bufloaded(s:log_file)
62+
execute 'silent bdelete' s:log_file
63+
endif
6164
call writefile(g:vundle_log, s:log_file)
6265
execute 'silent pedit ' . s:log_file
6366

0 commit comments

Comments
 (0)