From 8b32537618d80b966ffbf1f4ec4d8bd6fa36338a Mon Sep 17 00:00:00 2001 From: Yura Taras Date: Tue, 29 Aug 2023 19:54:51 +0300 Subject: [PATCH] Fixing last_runnable --- lua/rust-tools/cached_commands.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/rust-tools/cached_commands.lua b/lua/rust-tools/cached_commands.lua index d84b89e..b4a201f 100644 --- a/lua/rust-tools/cached_commands.lua +++ b/lua/rust-tools/cached_commands.lua @@ -7,7 +7,7 @@ local cache = { } -- @param action -M.set_last_runnable = function(c, r) +M.set_last_runnable = function(choice, result) cache.last_runnable = { choice, result } end @@ -28,7 +28,7 @@ end M.execute_last_runnable = function() local action = cache.last_runnable if action then - rt.runnables.run_command(action[0], action[1]) + rt.runnables.run_command(action[1], action[2]) else rt.runnables.runnables() end