fix: return the latest instance instead of the first instance

This commit is contained in:
JuanZoran
2023-03-15 22:27:30 +08:00
parent df52f2339c
commit efec62d144
6 changed files with 38 additions and 18 deletions

View File

@ -34,7 +34,7 @@ end
---@return TransHover
function M.get_active_instance()
M.clear_dead_instance()
return M.queue[1]
return M.queue[#M.queue]
end
---Clear dead instance