cp.nvim/lua/cp/ui
Barrett Ruth ad90d564ca fix(views): fix interactive guard logic and add stress panel support
Problem: toggle_interactive() had its condition inverted — it blocked
:CP interact on non-interactive problems while showing the message "This
problem is interactive", and passed through on interactive ones. The
panel guard in toggle_panel() was also missing a nil-check on
contest_data.index_map, which could crash if the index map was absent.

Solution: invert the toggle_interactive() guard to match the symmetrical
pattern in toggle_view(), fix the error message to say "not interactive",
and add the missing index_map guard. Also handle the stress panel type
in M.disable() so :CP stress can be toggled off.
2026-03-03 15:09:41 -05:00
..
ansi.lua fix: highlighting 2025-10-23 18:16:36 -04:00
diff.lua fix(scrapers): fix 2025-10-04 15:00:37 -04:00
edit.lua feat: fix typign 2025-11-04 22:08:07 -05:00
highlight.lua feat(highlight): use default highlights 2026-01-27 14:27:41 -05:00
layouts.lua feat: update git formatting 2026-01-27 17:18:52 -05:00
views.lua fix(views): fix interactive guard logic and add stress panel support 2026-03-03 15:09:41 -05:00