mirror of
https://github.com/tmux/tmux.git
synced 2024-12-12 17: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;
|
||||
}
|
||||
|
||||
wme->prefix = 1;
|
||||
|
||||
if (cancel)
|
||||
window_pane_reset_mode(wp);
|
||||
else if (redraw)
|
||||
window_copy_redraw_screen(wme);
|
||||
wme->prefix = 1;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user