Preserve the last visible terminal scroll state before hiding so worktree switches and hidden layout changes restore the expected viewport.
Preserve the last visible terminal scroll state before hiding so worktree switches and hidden layout changes restore the expected viewport.