aboutsummaryrefslogtreecommitdiff
path: root/src/app/api/plugins
diff options
context:
space:
mode:
authorSeason Saw <season.saw@gmail.com>2026-07-27 21:17:14 +0800
committerGitHub <noreply@github.com>2026-07-27 16:17:14 +0300
commita979916568b0225123711b1aa401d67102e3cf95 (patch)
tree5eca8f1db66b4b03f35c64b532cf10d5072369d4 /src/app/api/plugins
parent6d1bedee3ee164ed0151f8adab1313be5915d652 (diff)
fix: keep focus on the current workspace when another self-closes (#1912)
handle_pane_died only clamped the stale active/selected indices after removing a workspace that closed itself, so it never shifted them down when the removed workspace sat before the focused one. With workspaces [x, y, z] and focus on y, removing x left active pointing at z, silently moving the user into a workspace they did not select. Resolve both indices by workspace id across the removal, as close_selected_workspace already does, keeping the clamp as the fallback for when the removed workspace was the focused one. Also scroll the focused workspace back into view, which the explicit-close path already did and this one did not. refs #1621 Co-authored-by: Can Celik <ogulcancelik@gmail.com>
Diffstat (limited to 'src/app/api/plugins')
0 files changed, 0 insertions, 0 deletions