branch: elpa/lua-mode
commit a80d91208e82af62731bd2e0d0ce175c320d5ec0
Author: Reuben Thomas <[email protected]>
Commit: Reuben Thomas <[email protected]>
Fix a minor bug in lua-kill-process
Set lua-process-buffer to nil after killing the buffer so we don’t try to
use it erroneously. Fixes lua-restart-with-whole-file giving an error every
other invocation.
---
lua-mode.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lua-mode.el b/lua-mode.el
index bc71e6b..f35d964 100644
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -1776,7 +1776,8 @@ When called interactively, switch to the process buffer."
"Kill Lua process and its buffer."
(interactive)
(when (buffer-live-p lua-process-buffer)
- (kill-buffer lua-process-buffer)))
+ (kill-buffer lua-process-buffer)
+ (setq lua-process-buffer nil)))
(defun lua-set-lua-region-start (&optional arg)
"Set start of region for use with `lua-send-lua-region'."