diff options
author | nicm <nicm> | 2017-01-10 19:45:55 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-01-10 19:45:55 +0000 |
commit | 55266275587f3bb6f0dfdb1623cb870315a38213 (patch) | |
tree | bee559503005765cb3da3e3deb2c97bc18c76bfb | |
parent | aa4de2d4b29fc7bdb15a207d44682a173ab874b6 (diff) | |
download | rtmux-55266275587f3bb6f0dfdb1623cb870315a38213.tar.gz rtmux-55266275587f3bb6f0dfdb1623cb870315a38213.tar.bz2 rtmux-55266275587f3bb6f0dfdb1623cb870315a38213.zip |
Minor tidying in a couple of commands.
-rw-r--r-- | cmd-clear-history.c | 5 | ||||
-rw-r--r-- | cmd-refresh-client.c | 3 |
2 files changed, 3 insertions, 5 deletions
diff --git a/cmd-clear-history.c b/cmd-clear-history.c index 1afd9053..b5e0f84f 100644 --- a/cmd-clear-history.c +++ b/cmd-clear-history.c @@ -44,13 +44,10 @@ static enum cmd_retval cmd_clear_history_exec(__unused struct cmd *self, struct cmdq_item *item) { struct window_pane *wp = item->state.tflag.wp; - struct grid *gd; - - gd = item->state.tflag.wp->base.grid; if (wp->mode == &window_copy_mode) window_pane_reset_mode(wp); - grid_clear_history(gd); + grid_clear_history(wp->base.grid); return (CMD_RETURN_NORMAL); } diff --git a/cmd-refresh-client.c b/cmd-refresh-client.c index b1234f36..289563c6 100644 --- a/cmd-refresh-client.c +++ b/cmd-refresh-client.c @@ -24,7 +24,8 @@ * Refresh client. */ -static enum cmd_retval cmd_refresh_client_exec(struct cmd *, struct cmdq_item *); +static enum cmd_retval cmd_refresh_client_exec(struct cmd *, + struct cmdq_item *); const struct cmd_entry cmd_refresh_client_entry = { .name = "refresh-client", |