mirror of
https://github.com/wez/wezterm.git
synced 2024-12-24 13:52:55 +03:00
correctly fix #173
The real problem was an inconsistency in computing the tab bar enablement state. This makes the math the same in both places and re-enables the `hide_tab_bar_if_only_one_tab` option.
This commit is contained in:
parent
921719267f
commit
e74f467c39
@ -858,8 +858,11 @@ impl TermWindow {
|
||||
Some(window) => window,
|
||||
_ => return,
|
||||
};
|
||||
self.show_tab_bar =
|
||||
config.enable_tab_bar && (window.len() > 1) || !config.hide_tab_bar_if_only_one_tab;
|
||||
if window.len() == 1 {
|
||||
self.show_tab_bar = config.enable_tab_bar && !config.hide_tab_bar_if_only_one_tab;
|
||||
} else {
|
||||
self.show_tab_bar = config.enable_tab_bar;
|
||||
}
|
||||
|
||||
self.show_scroll_bar = config.enable_scroll_bar;
|
||||
self.shape_cache.borrow_mut().clear();
|
||||
@ -950,7 +953,7 @@ impl TermWindow {
|
||||
// to piggy back on the config reloading code for that, so that
|
||||
// is what we're doing.
|
||||
if show_tab_bar != self.show_tab_bar {
|
||||
self.check_for_config_reload();
|
||||
self.config_was_reloaded();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user