Skip to content

Commit

Permalink
On select-window, make this client the latest client for the window.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicm committed May 16, 2020
1 parent 0ab82d9 commit 844b363
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd-select-window.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ static enum cmd_retval
cmd_select_window_exec(struct cmd *self, struct cmdq_item *item)
{
struct args *args = cmd_get_args(self);
struct client *c = cmdq_get_client(item);
struct cmd_find_state *current = cmdq_get_current(item);
struct cmd_find_state *target = cmdq_get_target(item);
struct winlink *wl = target->wl;
Expand Down Expand Up @@ -141,6 +142,8 @@ cmd_select_window_exec(struct cmd *self, struct cmdq_item *item)
}
cmdq_insert_hook(s, item, current, "after-select-window");
}
if (c->session != NULL)
s->curw->window->latest = c;
recalculate_sizes();

return (CMD_RETURN_NORMAL);
Expand Down

0 comments on commit 844b363

Please sign in to comment.