diff options
Diffstat (limited to 'plugins/datetimestamps.lua')
-rw-r--r-- | plugins/datetimestamps.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/datetimestamps.lua b/plugins/datetimestamps.lua index 28b07c8..f16af83 100644 --- a/plugins/datetimestamps.lua +++ b/plugins/datetimestamps.lua @@ -77,9 +77,11 @@ command.add("core.docview", { ["datetimestamps:insert-timestamp"] = timestamp, ["datetimestamps:insert-datetimestamp"] = datetimestamp, ["datetimestamps:insert-custom"] = function() - core.command_view:enter("Date format eg: %H:%M:%S", function(cmd) - core.active_view.doc:text_input(os.date(cmd) or "") - end) + core.command_view:enter("Date format eg: %H:%M:%S", { + submit = function(cmd) + core.active_view.doc:text_input(os.date(cmd) or "") + end + }) end, }) |