emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/pacmacs 8836f12761 410/472: Kill the game buffer on initia


From: ELPA Syncer
Subject: [nongnu] elpa/pacmacs 8836f12761 410/472: Kill the game buffer on initialization (#134)
Date: Thu, 6 Jan 2022 21:59:44 -0500 (EST)

branch: elpa/pacmacs
commit 8836f127615288e5c0e828be2980589ec1f12a9f
Author: rexim <reximkut@gmail.com>
Commit: rexim <reximkut@gmail.com>

    Kill the game buffer on initialization (#134)
    
    It prevents some really strange errors when you invoke `pacmacs-start`
    when at the game over state game asks your nickname and you didn't
    submit it.
---
 pacmacs.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pacmacs.el b/pacmacs.el
index 03ee93537c..331abe19f7 100644
--- a/pacmacs.el
+++ b/pacmacs.el
@@ -106,6 +106,8 @@
 (defun pacmacs--initialize-game (tick-function)
   (pacmacs--clear-wall-tiles-cache)
 
+  (when (get-buffer pacmacs-buffer-name)
+    (kill-buffer pacmacs-buffer-name))
   (switch-to-buffer pacmacs-buffer-name)
   (buffer-disable-undo pacmacs-buffer-name)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]