fix a lot of logic

This commit is contained in:
Barrett Ruth 2025-10-01 15:15:04 -04:00
parent b406c0ce4e
commit 62af1965f8
4 changed files with 57 additions and 86 deletions

View file

@ -238,7 +238,7 @@ function M.toggle_run_panel(is_debug)
if vim.tbl_isempty(test_state.test_cases) then
return
end
test_state.current_index = (test_state.current_index + delta) % #test_state.test_cases
test_state.current_index = (test_state.current_index + delta - 1) % #test_state.test_cases + 1
refresh_run_panel()
end