diff options
| author | Teddy Wing | 2015-10-08 00:07:16 -0400 |
|---|---|---|
| committer | Teddy Wing | 2015-10-08 00:07:16 -0400 |
| commit | 953e75aa436a9ec8e4b6ccdd9d15806a5778cee2 (patch) | |
| tree | 317a5e8529ebbbd5ff4dabefc0d8af3ebe08456d /autoload/space_vlaze | |
| parent | 070aa028e22fa7e15911cd4e40764fc9b48c7be1 (diff) | |
| download | vim-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.
Diffstat (limited to 'autoload/space_vlaze')
| -rw-r--r-- | autoload/space_vlaze/buffer.vim | 3 |
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 |
