docs(terminal): align startup seeding comment with silent subscriptions
#302 made DECSET 2031 subscriptions silent, so the pane-startup seeding comment no longer describes the failure it guards against: without the seed, the first real dark/light flip is swallowed by same-value change detection and subscribers miss the first notification; the removed subscribe-time report no longer exists to hand out a wrong initial value.
This commit is contained in:
1 parent
d30d1c9bbc
commit
4933d9db8a
1 file changed
+2
-2
@@ -346,8 +346,8 @@ impl TerminalView {
|
||||
bell_flash_epoch: 0,
|
||||
};
|
||||
// 出生即把亮暗种进 Term:`Term::color_scheme_dark` 的默认值是「暗」,
|
||||
// 浅色主题下启动的 pane 如果不种,第一个 DECSET 2031 的订阅方会拿到
|
||||
// 一个错的初值,而且在用户下一次改主题之前都纠不回来。
|
||||
// 浅色主题下启动的 pane 如果不种,第一次真实的亮暗翻转会被
|
||||
// `set_color_scheme` 的同值去重吞掉,订阅方漏收第一条通知。
|
||||
if let Some(session) = &view.session {
|
||||
session.term.lock().set_color_scheme(view.palette.is_dark());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user