summaryrefslogtreecommitdiff
path: root/elisp/geiser-completion.el
diff options
context:
space:
mode:
Diffstat (limited to 'elisp/geiser-completion.el')
-rw-r--r--elisp/geiser-completion.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/elisp/geiser-completion.el b/elisp/geiser-completion.el
index 09c021f..b58b6be 100644
--- a/elisp/geiser-completion.el
+++ b/elisp/geiser-completion.el
@@ -101,9 +101,10 @@ terminates a current completion."
(get-buffer-window geiser-completion--comp-buffer)))))
(defun geiser-completion--display-or-scroll (completions base)
- (cond ((and (eq last-command this-command) (geiser-completion--window-active-p))
- (geiser-completion--scroll-completions))
- (t (geiser-completion--display-comp-list completions base)))
+ (if (and (eq last-command this-command)
+ (geiser-completion--window-active-p))
+ (geiser-completion--scroll-completions)
+ (geiser-completion--display-comp-list completions base))
(geiser-completion--delay-restoration))
(defun geiser-completion--scroll-completions ()