diff options
author | 2015-08-16 08:57:34 +0000 | |
---|---|---|
committer | 2015-08-16 08:57:34 +0000 | |
commit | 3ed771d50ea446443768511095e909f83c6021cc (patch) | |
tree | 0fe9ed456c71fedb272812e165dfb63537757338 | |
parent | Some bits for Loongson 3A support. (diff) | |
download | wireguard-openbsd-3ed771d50ea446443768511095e909f83c6021cc.tar.xz wireguard-openbsd-3ed771d50ea446443768511095e909f83c6021cc.zip |
Come out of copy mode when history is cleared.
-rw-r--r-- | usr.bin/tmux/cmd-clear-history.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/tmux/cmd-clear-history.c b/usr.bin/tmux/cmd-clear-history.c index 40916533d26..c45ad94a890 100644 --- a/usr.bin/tmux/cmd-clear-history.c +++ b/usr.bin/tmux/cmd-clear-history.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-clear-history.c,v 1.12 2014/10/20 22:29:25 nicm Exp $ */ +/* $OpenBSD: cmd-clear-history.c,v 1.13 2015/08/16 08:57:34 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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; |