Skip to content

Commit adf55d4

Browse files
committed
return atom to prevent processing nil
1 parent 5e14284 commit adf55d4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

inf-clojure.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,10 @@ If you are using REPL types, it will pickup the most approapriate
726726
(define-obsolete-variable-alias 'inf-clojure-completion-command 'inf-clojure-completion-form "2.0.0")
727727

728728
(defcustom inf-clojure-completion-form-lumo
729-
"(lumo.repl/get-completions \"%s\" (fn [res] (map str res)))"
729+
"(let [ret (atom)]
730+
(lumo.repl/get-completions \"%s\"
731+
(fn [res] (swap! ret (map str res))))
732+
@ret)"
730733
"Lumo form to query inferior Clojure for completion candidates."
731734
:type 'string
732735
:package-version '(inf-clojure . "2.0.0"))

0 commit comments

Comments
 (0)