summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Orst <andreyorst@gmail.com>2019-09-02 15:29:25 +0000
committerAndrey Orst <andreyorst@gmail.com>2019-09-02 15:29:25 +0000
commitb02dfd702aa7889c8c18f1e3ecd4c1b83b32e70c (patch)
tree15d50b1036d974358d99d175b8b17c2a76eb8912
parent6bad5c0ce8a19e2046e143a1d1c30e04ae6c2439 (diff)
downloadgeiser-b02dfd702aa7889c8c18f1e3ecd4c1b83b32e70c.tar.gz
geiser-b02dfd702aa7889c8c18f1e3ecd4c1b83b32e70c.tar.bz2
Set header-line-format only in case when `cond` branch is true
-rw-r--r--elisp/geiser-repl.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/elisp/geiser-repl.el b/elisp/geiser-repl.el
index 014fb74..c589ab3 100644
--- a/elisp/geiser-repl.el
+++ b/elisp/geiser-repl.el
@@ -384,14 +384,14 @@ module command as a string")
(defun geiser-repl--save-remote-data (address)
(setq geiser-repl--address address)
- (setq header-line-format
- (cond ((consp address)
+ (cond ((consp address)
+ (setq header-line-format
(format "Host: %s Port: %s"
(geiser-repl--host)
- (geiser-repl--port)))
- ((stringp address)
- (format "Socket: %s" address))
- (t nil))))
+ (geiser-repl--port))))
+ ((stringp address)
+ (setq header-line-format
+ (format "Socket: %s" address)))))
(defun geiser-repl--fontify-output-region (beg end)
"Apply highlighting to a REPL output region."