[216_9]标签栏体验优化#3138
Merged
Yuki-Nagori merged 4 commits intomainMoganLab/mogan:mainfrom Apr 14, 2026
Merged
Conversation
Contributor
Greptile Summary此 PR 解决了两个独立问题:一是将 Confidence Score: 5/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[kill_tabpage 被调用] --> B{win_tabpage == NULL?}
B -- 是 --> Z[直接返回]
B -- 否 --> C[记录 is_current 和 refresh_tabbar_for_non_current]
C --> D{is_current?}
D -- 是 --> E[detach 当前视图\ned->suspend\n清空 scrollable]
D -- 否 --> F[跳过 detach]
E --> G{找到同窗口的\n其他视图?}
F --> H[跳过 attach]
G -- 是 --> I[window_set_view 附着新视图]
G -- 否 --> J[kill_window 关闭窗口]
I --> K[delete_view / 释放 buffer]
H --> K
J --> K
K --> L{refresh_tabbar_for_non_current?}
L -- 否 --> Z2[结束]
L -- 是 --> M[get_current_view_safe]
M --> N{current_vw != NULL\n且 win_tabpage 匹配?}
N -- 否 --> Z2
N -- 是 --> O[current_ed->suspend]
O --> P[current_ed->resume\n强制触发 Tab Bar 刷新]
P --> Z2[结束]
Reviews (3): Last reviewed commit: "wip" | Re-trigger Greptile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.