Come out of copy mode when history is cleared.

pull/95/head
nicm 2015-08-16 08:57:34 +00:00
parent 46aa92420a
commit 58b659a26e
1 changed files with 3 additions and 0 deletions

View File

@ -45,6 +45,9 @@ cmd_clear_history_exec(struct cmd *self, struct cmd_q *cmdq)
return (CMD_RETURN_ERROR);
gd = wp->base.grid;
if (wp->mode == &window_copy_mode)
window_pane_reset_mode(wp);
grid_move_lines(gd, 0, gd->hsize, gd->sy);
gd->hsize = 0;