diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f15d63a..ddabc71 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,6 +29,7 @@ jobs: - 'stylua.toml' - 'selene.toml' python: + - 'scripts/**' - 'scrapers/**' - 'tests/scrapers/**' - 'pyproject.toml' diff --git a/lua/cp/ui/panel.lua b/lua/cp/ui/panel.lua index 6cc1526..32bef7c 100644 --- a/lua/cp/ui/panel.lua +++ b/lua/cp/ui/panel.lua @@ -326,14 +326,13 @@ function M.toggle_run_panel(run_opts) end, { buffer = buf, silent = true }) vim.keymap.set('n', 't', function() local modes = { 'none', 'git', 'vim' } - local current_idx = nil + local current_idx = 1 for i, mode in ipairs(modes) do if config.ui.run_panel.diff_mode == mode then current_idx = i break end end - current_idx = current_idx or 1 config.ui.run_panel.diff_mode = modes[(current_idx % #modes) + 1] refresh_run_panel() end, { buffer = buf, silent = true })