diff --git a/command.fnl b/command.fnl index 2a02ea7..b99ff0c 100644 --- a/command.fnl +++ b/command.fnl @@ -152,7 +152,9 @@ : active? : define-command : on-input - : reset-state : invoke-interactively : widget + :_ { + : reset-state + } } diff --git a/test/command.fnl b/test/command.fnl index 621fb71..8e64db9 100644 --- a/test/command.fnl +++ b/test/command.fnl @@ -3,7 +3,7 @@ (local Command (require :command)) (var happened false) -(fn before [] (set happened false) (Command.reset-state)) +(fn before [] (set happened false) (Command._.reset-state)) (Command.define-command "no-args-command" #(set happened true) [])