From d462709d217f0dbd6c8d1cad8342115c944af73a Mon Sep 17 00:00:00 2001 From: Aotrix <9aotrix@protonmail.com> Date: Wed, 3 Jun 2026 21:42:21 +0200 Subject: Set current command to the last used --- lua/aotrix/build.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lua/aotrix/build.lua') diff --git a/lua/aotrix/build.lua b/lua/aotrix/build.lua index 96a7f75..8408814 100644 --- a/lua/aotrix/build.lua +++ b/lua/aotrix/build.lua @@ -20,7 +20,10 @@ local COMMANDS = {} local personalCommands = require("aotrix.personal_commands") COMMANDS.AddTempCommand = { - command = function() return personalCommands.createCommand(COMMANDS) end, + command = function() + CURRENT_COMMAND = personalCommands.createCommand(COMMANDS).command + return CURRENT_COMMAND() + end, description = function() return "Add temporary command" end } -- cgit v1.2.3