Browse code

Ensure that history cycling state is reset on command submission

Joseph Weston authored on 11/12/2021 20:40:48
Showing 1 changed files
... ...
@@ -89,6 +89,7 @@
89 89
      ; don't always have to prefix with a conditional
90 90
      (cond-> db
91 91
       true (update-in [:cmdline :current] (constantly nil))
92
+      true (update-in [:cmdline :selected-history] (constantly nil))
92 93
       (not-empty? cmdline)
93 94
       (as-> db
94 95
         (let [output (execute db cmdline)]