mirror of
https://github.com/tmux/tmux.git
synced 2025-01-05 23:38:48 +00:00
Do not use window mode entry after free.
This commit is contained in:
parent
f98c66ece8
commit
9cc04a0f9a
@ -997,11 +997,12 @@ window_copy_command(struct window_mode_entry *wme, struct client *c,
|
|||||||
data->searchx = data->searchy = -1;
|
data->searchx = data->searchy = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wme->prefix = 1;
|
||||||
|
|
||||||
if (cancel)
|
if (cancel)
|
||||||
window_pane_reset_mode(wp);
|
window_pane_reset_mode(wp);
|
||||||
else if (redraw)
|
else if (redraw)
|
||||||
window_copy_redraw_screen(wme);
|
window_copy_redraw_screen(wme);
|
||||||
wme->prefix = 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user