From 953e75aa436a9ec8e4b6ccdd9d15806a5778cee2 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 8 Oct 2015 00:07:16 -0400 Subject: buffer#Init: Allow players to start a new game in the same session Don't prevent the menu from showing up on subsequent invocations of `:SpaceVlaze`. This allows us to start multiple new games in the same Vim session. --- autoload/space_vlaze/buffer.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/space_vlaze/buffer.vim b/autoload/space_vlaze/buffer.vim index ecea3d8..ca83638 100644 --- a/autoload/space_vlaze/buffer.vim +++ b/autoload/space_vlaze/buffer.vim @@ -4,10 +4,11 @@ function! space_vlaze#buffer#Init() if !buflisted(s:buffer_name) " call space_vlaze#game#Init() call space_vlaze#buffer#New() - call space_vlaze#menus#Start() else execute 'b' . bufnr(s:buffer_name) endif + + call space_vlaze#menus#Start() endfunction -- cgit v1.2.3