fix: user custom commands not working

This commit is contained in:
Tienson Qin
2020-11-19 15:22:54 +08:00
parent e22ba14e64
commit 0a92889258
4 changed files with 11 additions and 8 deletions

View File

@@ -1361,10 +1361,6 @@
:or {restore? true}
:as option}]
(cond
(fn? command-output)
(let [s (command-output)]
(commands/insert! id s option))
;; replace string
(string? command-output)
(commands/insert! id command-output option)
@@ -1373,6 +1369,10 @@
(vector? command-output)
(commands/handle-steps command-output format)
(fn? command-output)
(let [s (command-output)]
(commands/insert! id s option))
:else
nil)