fix: restore the commands after auto-complete date commands

Related to #686
This commit is contained in:
Tienson Qin
2020-11-18 23:01:11 +08:00
parent 86c2e460cf
commit 857e1d3df2
3 changed files with 11 additions and 7 deletions

View File

@@ -1377,8 +1377,10 @@
nil)
(when restore?
(let [restore-slash-caret-pos? (if (= :editor/click-hidden-file-input
(ffirst command-output))
(let [restore-slash-caret-pos? (if (and
(seq? command-output)
(= :editor/click-hidden-file-input
(ffirst command-output)))
false
true)]
(commands/restore-state restore-slash-caret-pos?))))