aboutsummaryrefslogtreecommitdiff
path: root/cmd-clear-history.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2016-10-16 22:01:14 +0100
committerThomas Adam <thomas@xteddy.org>2016-10-16 22:01:14 +0100
commit1a6e696b08113ca17ee8e881844167cf94276846 (patch)
tree60ecdd8c9e51bff46624e48d9373686b858d2fb1 /cmd-clear-history.c
parentd401340c516131ae8e07bfb978b670347486d077 (diff)
parentd15d54c2c8e6b95695169442eb2a27d814efc078 (diff)
downloadrtmux-1a6e696b08113ca17ee8e881844167cf94276846.tar.gz
rtmux-1a6e696b08113ca17ee8e881844167cf94276846.tar.bz2
rtmux-1a6e696b08113ca17ee8e881844167cf94276846.zip
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-clear-history.c')
-rw-r--r--cmd-clear-history.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/cmd-clear-history.c b/cmd-clear-history.c
index 46f1d4e6..1afd9053 100644
--- a/cmd-clear-history.c
+++ b/cmd-clear-history.c
@@ -24,7 +24,8 @@
* Clear pane history.
*/
-static enum cmd_retval cmd_clear_history_exec(struct cmd *, struct cmd_q *);
+static enum cmd_retval cmd_clear_history_exec(struct cmd *,
+ struct cmdq_item *);
const struct cmd_entry cmd_clear_history_entry = {
.name = "clear-history",
@@ -40,12 +41,12 @@ const struct cmd_entry cmd_clear_history_entry = {
};
static enum cmd_retval
-cmd_clear_history_exec(__unused struct cmd *self, struct cmd_q *cmdq)
+cmd_clear_history_exec(__unused struct cmd *self, struct cmdq_item *item)
{
- struct window_pane *wp = cmdq->state.tflag.wp;
+ struct window_pane *wp = item->state.tflag.wp;
struct grid *gd;
- gd = cmdq->state.tflag.wp->base.grid;
+ gd = item->state.tflag.wp->base.grid;
if (wp->mode == &window_copy_mode)
window_pane_reset_mode(wp);