fix(stress): restore IO view after stress session ends

Problem: `:CP stress` saves/restores the session via `mksession`,
but scratch IO buffers lose their contents and `clearcol` window
options are not restored.

Solution: call `ensure_io_view()` after session restore in both
the toggle and cleanup paths.
This commit is contained in:
Barrett Ruth 2026-03-06 19:53:41 -05:00
parent c6a4c6ebc1
commit 446f87f98c
Signed by: barrett
GPG key ID: A6C96C9349D2FC81

View file

@ -72,6 +72,7 @@ function M.toggle(generator_cmd, brute_cmd)
state.saved_stress_session = nil
end
state.set_active_panel(nil)
require('cp.ui.views').ensure_io_view()
return
end
@ -128,6 +129,7 @@ function M.toggle(generator_cmd, brute_cmd)
vim.fn.delete(state.saved_stress_session)
state.saved_stress_session = nil
end
require('cp.ui.views').ensure_io_view()
end
execute.compile_problem(false, function(compile_result)