Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Fixing last_runnable #419

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lua/rust-tools/cached_commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down