[BACK]Return to session.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/session.c between version 1.88 and 1.89

version 1.88, 2021/07/06 08:18:38 version 1.89, 2021/08/13 06:52:51
Line 489 
Line 489 
 int  int
 session_set_current(struct session *s, struct winlink *wl)  session_set_current(struct session *s, struct winlink *wl)
 {  {
           struct winlink  *old = s->curw;
   
         if (wl == NULL)          if (wl == NULL)
                 return (-1);                  return (-1);
         if (wl == s->curw)          if (wl == s->curw)
Line 497 
Line 499 
         winlink_stack_remove(&s->lastw, wl);          winlink_stack_remove(&s->lastw, wl);
         winlink_stack_push(&s->lastw, s->curw);          winlink_stack_push(&s->lastw, s->curw);
         s->curw = wl;          s->curw = wl;
           if (options_get_number(global_options, "focus-events")) {
                   window_update_focus(old->window);
                   window_update_focus(wl->window);
           }
         winlink_clear_flags(wl);          winlink_clear_flags(wl);
         window_update_activity(wl->window);          window_update_activity(wl->window);
         tty_update_window_offset(wl->window);          tty_update_window_offset(wl->window);

Legend:
Removed from v.1.88  
changed lines
  Added in v.1.89