fix(panes): ensure ejected pane always has a frame (#1950)

This commit is contained in:
Aram Drevekenin 2022-11-16 17:59:52 +01:00 committed by GitHub
parent aa2adda475
commit 81b08d6057
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -793,10 +793,9 @@ impl Tab {
return Ok(());
}
if let Some(mut embedded_pane_to_float) = self.close_pane(focused_pane_id, true) {
if self.draw_pane_frames && !embedded_pane_to_float.borderless() {
if !embedded_pane_to_float.borderless() {
// floating panes always have a frame unless they're explicitly borderless
embedded_pane_to_float.set_content_offset(Offset::frame(1));
} else if !self.draw_pane_frames {
embedded_pane_to_float.set_content_offset(Offset::default());
}
embedded_pane_to_float.set_geom(new_pane_geom);
resize_pty!(embedded_pane_to_float, self.os_api, self.senders)