mirror of
https://github.com/tmux/tmux.git
synced 2026-08-03 14:08:59 +00:00
Fix some test failures.
This commit is contained in:
@@ -151,6 +151,7 @@ cmd_break_pane_exec(struct cmd *self, struct cmdq_item *item)
|
||||
layout_close_pane(wp);
|
||||
|
||||
w = wp->window = window_create(w->sx, w->sy, w->xpixel, w->ypixel);
|
||||
window_add_ref(w, __func__);
|
||||
options_set_parent(wp->options, w->options);
|
||||
wp->flags |= (PANE_STYLECHANGED|PANE_THEMECHANGED);
|
||||
TAILQ_INSERT_HEAD(&w->panes, wp, entry);
|
||||
@@ -173,6 +174,7 @@ cmd_break_pane_exec(struct cmd *self, struct cmdq_item *item)
|
||||
if (idx == -1)
|
||||
idx = -1 - options_get_number(dst_s->options, "base-index");
|
||||
wl = session_attach(dst_s, w, idx, &cause); /* can't fail */
|
||||
window_remove_ref(w, __func__);
|
||||
if (!args_has(args, 'd')) {
|
||||
session_select(dst_s, wl->idx);
|
||||
cmd_find_from_session(current, dst_s, 0);
|
||||
|
||||
7
window.c
7
window.c
@@ -1308,9 +1308,9 @@ window_pane_destroy(struct window_pane *wp)
|
||||
window_pane_wait_finish(wp);
|
||||
spawn_editor_finish(wp);
|
||||
|
||||
window_pane_clear_prompt(wp);
|
||||
RB_REMOVE(window_pane_tree, &all_window_panes, wp);
|
||||
wp->flags |= PANE_DESTROYED;
|
||||
window_pane_clear_prompt(wp);
|
||||
|
||||
window_pane_free_modes(wp);
|
||||
screen_write_clear_dirty(wp);
|
||||
@@ -1657,10 +1657,13 @@ window_pane_clear_prompt(struct window_pane *wp)
|
||||
if (prompt != NULL) {
|
||||
if (wpp != NULL)
|
||||
type = wpp->type;
|
||||
|
||||
wp->prompt = NULL;
|
||||
prompt_free(prompt);
|
||||
wp->flags |= PANE_REDRAW;
|
||||
window_fire_pane_prompt("pane-prompt-closed", wp, type);
|
||||
|
||||
if (~wp->flags & PANE_DESTROYED)
|
||||
window_fire_pane_prompt("pane-prompt-closed", wp, type);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user