mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 06:17:04 +00:00
Minor tidying in a couple of commands.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user