diff options
Diffstat (limited to 'clojure/src')
| -rw-r--r-- | clojure/src/readline.clj | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clojure/src/readline.clj b/clojure/src/readline.clj index 0fc449a..a510e13 100644 --- a/clojure/src/readline.clj +++ b/clojure/src/readline.clj @@ -27,7 +27,8 @@ (def load-history (jna/to-fn Integer readline/read_history))) (defn readline [prompt & [lib]] - (if (not @history-loaded) + (when (not @history-loaded) + (reset! history-loaded true) (load-history HISTORY-FILE)) (let [line (readline-call prompt)] (when line |
