branch: elpa/lua-mode
commit 3ba5ecc1b05d167d127bade53834397e36834c2a
Author: Reuben Thomas <[email protected]>
Commit: velkyel <[email protected]>
Minor simplification of lua-get-create-process
---
lua-mode.el | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/lua-mode.el b/lua-mode.el
index 2046a4d..bd92c3b 100644
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -1771,9 +1771,8 @@ When called interactively, switch to the process buffer."
(defun lua-get-create-process ()
"Return active Lua process creating one if necessary."
- (or (and (comint-check-proc lua-process-buffer)
- lua-process)
- (lua-start-process))
+ (unless (comint-check-proc lua-process-buffer)
+ (lua-start-process))
lua-process)
(defun lua-kill-process ()