diff options
author | jgmdev <jgmdev@gmail.com> | 2022-06-16 00:32:07 -0400 |
---|---|---|
committer | jgmdev <jgmdev@gmail.com> | 2022-06-16 00:32:07 -0400 |
commit | 49fc493834c9b450ed102e261e65577a88291008 (patch) | |
tree | dd30ac8d0b4952f7a7499b9583d327a30656571f /plugins/datetimestamps.lua | |
parent | d8fbb5ea0c65e01c441e7b9917dcb97da60e8f2b (diff) | |
download | lite-xl-plugins-49fc493834c9b450ed102e261e65577a88291008.tar.gz lite-xl-plugins-49fc493834c9b450ed102e261e65577a88291008.zip |
updates to new command_view:enter interface
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, }) |