aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2015-10-08 00:07:16 -0400
committerTeddy Wing2015-10-08 00:07:16 -0400
commit953e75aa436a9ec8e4b6ccdd9d15806a5778cee2 (patch)
tree317a5e8529ebbbd5ff4dabefc0d8af3ebe08456d
parent070aa028e22fa7e15911cd4e40764fc9b48c7be1 (diff)
downloadvim-space-vlaze-953e75aa436a9ec8e4b6ccdd9d15806a5778cee2.tar.bz2
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.
-rw-r--r--autoload/space_vlaze/buffer.vim3
1 files changed, 2 insertions, 1 deletions
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