[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.92 and 1.93

version 1.92, 2022/02/22 13:31:18 version 1.93, 2022/10/17 10:59:42
Line 710 
Line 710 
         struct winlink          *wl, *wl1, *wl_new;          struct winlink          *wl, *wl1, *wl_new;
         struct winlinks          old_wins;          struct winlinks          old_wins;
         struct winlink_stack     old_lastw;          struct winlink_stack     old_lastw;
         int                      new_idx, new_curw_idx;          int                      new_idx, new_curw_idx, marked_idx = -1;
   
         /* Save and replace old window list. */          /* Save and replace old window list. */
         memcpy(&old_wins, &s->windows, sizeof old_wins);          memcpy(&old_wins, &s->windows, sizeof old_wins);
Line 727 
Line 727 
                 winlink_set_window(wl_new, wl->window);                  winlink_set_window(wl_new, wl->window);
                 wl_new->flags |= wl->flags & WINLINK_ALERTFLAGS;                  wl_new->flags |= wl->flags & WINLINK_ALERTFLAGS;
   
                   if (wl == marked_pane.wl)
                           marked_idx = wl_new->idx;
                 if (wl == s->curw)                  if (wl == s->curw)
                         new_curw_idx = wl_new->idx;                          new_curw_idx = wl_new->idx;
   
Line 743 
Line 745 
         }          }
   
         /* Set the current window. */          /* Set the current window. */
           if (marked_idx != -1) {
                   marked_pane.wl = winlink_find_by_index(&s->windows, marked_idx);
                   if (marked_pane.wl == NULL)
                           server_clear_marked();
           }
         s->curw = winlink_find_by_index(&s->windows, new_curw_idx);          s->curw = winlink_find_by_index(&s->windows, new_curw_idx);
   
         /* Free the old winlinks (reducing window references too). */          /* Free the old winlinks (reducing window references too). */

Legend:
Removed from v.1.92  
changed lines
  Added in v.1.93