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

Diff for /src/usr.bin/tmux/window.c between version 1.185 and 1.186

version 1.185, 2017/02/27 13:07:57 version 1.186, 2017/03/13 17:20:11
Line 588 
Line 588 
                 other = w->active;                  other = w->active;
   
         wp = window_pane_create(w, w->sx, w->sy, hlimit);          wp = window_pane_create(w, w->sx, w->sy, hlimit);
         if (TAILQ_EMPTY(&w->panes))          if (TAILQ_EMPTY(&w->panes)) {
                   log_debug("%s: @%u at start", __func__, w->id);
                 TAILQ_INSERT_HEAD(&w->panes, wp, entry);                  TAILQ_INSERT_HEAD(&w->panes, wp, entry);
         else if (before)          } else if (before) {
                   log_debug("%s: @%u before %%%u", __func__, w->id, wp->id);
                 TAILQ_INSERT_BEFORE(other, wp, entry);                  TAILQ_INSERT_BEFORE(other, wp, entry);
         else          } else {
                   log_debug("%s: @%u after %%%u", __func__, w->id, wp->id);
                 TAILQ_INSERT_AFTER(&w->panes, other, wp, entry);                  TAILQ_INSERT_AFTER(&w->panes, other, wp, entry);
           }
         return (wp);          return (wp);
 }  }
   

Legend:
Removed from v.1.185  
changed lines
  Added in v.1.186