Do not use window mode entry after free.

pull/1620/head
nicm 2019-03-08 10:29:25 +00:00
parent f98c66ece8
commit 9cc04a0f9a
1 changed files with 2 additions and 1 deletions

View File

@ -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