Repository navigation
Commit 24cb0c9
Skip focus restoration when closing an inactive tab
`on_pre_close` restored the group's previous selection for every closing
sheet, so closing a background tab pulled the focus to the previously
active tab. Restore only when the closing sheet is the active sheet of
its group.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 407d3b7 commit 24cb0c9
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
143 | 148 | | |
144 | 149 | | |
145 | 150 | | |
| |||
0 commit comments