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

Diff for /src/usr.bin/tmux/cmd.c between version 1.146 and 1.147

version 1.146, 2019/05/03 18:42:40 version 1.147, 2019/05/08 18:05:03
Line 510 
Line 510 
 {  {
         struct session  *s;          struct session  *s;
         struct window   *w;          struct window   *w;
           struct winlink  *wl;
   
         if (!m->valid || m->s == -1 || m->w == -1)          if (!m->valid)
                 return (NULL);                  return (NULL);
         if ((s = session_find_by_id(m->s)) == NULL)          if (m->s == -1 || (s = session_find_by_id(m->s)) == NULL)
                 return (NULL);                  return (NULL);
         if ((w = window_find_by_id(m->w)) == NULL)          if (m->w == -1)
                 return (NULL);                  wl = s->curw;
           else {
                   if ((w = window_find_by_id(m->w)) == NULL)
                           return (NULL);
                   wl = winlink_find_by_window(&s->windows, w);
           }
         if (sp != NULL)          if (sp != NULL)
                 *sp = s;                  *sp = s;
         return (winlink_find_by_window(&s->windows, w));          return (wl);
 }  }
   
 /* Get current mouse pane if any. */  /* Get current mouse pane if any. */

Legend:
Removed from v.1.146  
changed lines
  Added in v.1.147