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

Diff for /src/usr.bin/tmux/window-tree.c between version 1.36 and 1.37

version 1.36, 2019/04/17 14:37:48 version 1.37, 2019/04/30 06:19:51
Line 785 
Line 785 
         struct session                  *s;          struct session                  *s;
         struct winlink                  *wl;          struct winlink                  *wl;
         struct window_pane              *wp;          struct window_pane              *wp;
         const char                      *cmd;          char                            *cmd;
           int                              retval;
   
         window_tree_pull_item(item, &s, &wl, &wp);          window_tree_pull_item(item, &s, &wl, &wp);
   
Line 806 
Line 807 
                 cmd = get_proc_name(wp->fd, wp->tty);                  cmd = get_proc_name(wp->fd, wp->tty);
                 if (cmd == NULL || *cmd == '\0')                  if (cmd == NULL || *cmd == '\0')
                         return (0);                          return (0);
                 return (strstr(cmd, ss) != NULL);                  retval = (strstr(cmd, ss) != NULL);
                   free(cmd);
                   return retval;
         }          }
         return (0);          return (0);
 }  }

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37