mirror of
https://github.com/tmux/tmux.git
synced 2024-12-04 19:58:48 +00:00
Minor tidying in a couple of commands.
This commit is contained in:
parent
aa4de2d4b2
commit
5526627558
@ -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);
|
||||
}
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user