aboutsummaryrefslogtreecommitdiff
path: root/cmd-clear-history.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2015-09-25 18:01:09 +0100
committerThomas Adam <thomas@xteddy.org>2015-09-25 18:01:09 +0100
commit20c3adca41675b30593e39fa6fa9dfda615997ef (patch)
treec834821241b3cae2b5be95db7d6a3e9fb1f26359 /cmd-clear-history.c
parentb0372840e7461089412a8ddf705533f9f72f1426 (diff)
parent28f23f18e9d79405a60348c4f7aeded33da9135b (diff)
downloadrtmux-20c3adca41675b30593e39fa6fa9dfda615997ef.tar.gz
rtmux-20c3adca41675b30593e39fa6fa9dfda615997ef.tar.bz2
rtmux-20c3adca41675b30593e39fa6fa9dfda615997ef.zip
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-clear-history.c')
-rw-r--r--cmd-clear-history.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd-clear-history.c b/cmd-clear-history.c
index 88dbbcf7..63e9d548 100644
--- a/cmd-clear-history.c
+++ b/cmd-clear-history.c
@@ -47,9 +47,7 @@ cmd_clear_history_exec(struct cmd *self, struct cmd_q *cmdq)
if (wp->mode == &window_copy_mode)
window_pane_reset_mode(wp);
-
- grid_move_lines(gd, 0, gd->hsize, gd->sy);
- gd->hsize = 0;
+ grid_clear_history(gd);
return (CMD_RETURN_NORMAL);
}