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

Diff for /src/usr.bin/tmux/cmd-find.c between version 1.68 and 1.69

version 1.68, 2018/08/18 20:08:52 version 1.69, 2019/03/12 12:49:46
Line 971 
Line 971 
 {  {
         struct mouse_event      *m;          struct mouse_event      *m;
         struct cmd_find_state    current;          struct cmd_find_state    current;
         char                    *colon, *period, *copy = NULL;          char                    *colon, *period, *copy = NULL, tmp[256];
         const char              *session, *window, *pane, *s;          const char              *session, *window, *pane, *s;
         int                      window_only = 0, pane_only = 0;          int                      window_only = 0, pane_only = 0;
   
Line 988 
Line 988 
                 s = "session";                  s = "session";
         else          else
                 s = "unknown";                  s = "unknown";
         if (target == NULL)          *tmp = '\0';
                 log_debug("%s: target none, type %s", __func__, s);          if (flags & CMD_FIND_PREFER_UNATTACHED)
         else                  strlcat(tmp, "PREFER_UNATTACHED,", sizeof tmp);
                 log_debug("%s: target %s, type %s", __func__, target, s);          if (flags & CMD_FIND_QUIET)
         log_debug("%s: item %p, flags %#x", __func__, item, flags);                  strlcat(tmp, "QUIET,", sizeof tmp);
           if (flags & CMD_FIND_WINDOW_INDEX)
                   strlcat(tmp, "WINDOW_INDEX,", sizeof tmp);
           if (flags & CMD_FIND_DEFAULT_MARKED)
                   strlcat(tmp, "DEFAULT_MARKED,", sizeof tmp);
           if (flags & CMD_FIND_EXACT_SESSION)
                   strlcat(tmp, "EXACT_SESSION,", sizeof tmp);
           if (flags & CMD_FIND_EXACT_WINDOW)
                   strlcat(tmp, "EXACT_WINDOW,", sizeof tmp);
           if (flags & CMD_FIND_CANFAIL)
                   strlcat(tmp, "CANFAIL,", sizeof tmp);
           if (*tmp != '\0')
                   tmp[strlen(tmp) - 1] = '\0';
           log_debug("%s: target %s, type %s, item %p, flags %s", __func__,
               target == NULL ? "none" : target, s, item, tmp);
   
         /* Clear new state. */          /* Clear new state. */
         cmd_find_clear_state(fs, flags);          cmd_find_clear_state(fs, flags);
Line 1132 
Line 1146 
         if (pane != NULL)          if (pane != NULL)
                 pane = cmd_find_map_table(cmd_find_pane_table, pane);                  pane = cmd_find_map_table(cmd_find_pane_table, pane);
   
         log_debug("%s: target %s (flags %#x): session=%s, window=%s, pane=%s",          if (session != NULL || window != NULL || pane != NULL) {
             __func__, target, flags, session == NULL ? "none" : session,                  log_debug("%s: target %s is %s%s%s%s%s%s",
             window == NULL ? "none" : window, pane == NULL ? "none" : pane);                      __func__, target,
                       session == NULL ? "" : "session ",
                       session == NULL ? "" : session,
                       window == NULL ? "" : "window ",
                       window == NULL ? "" : window,
                       pane == NULL ? "" : "pane ",
                       pane == NULL ? "" : pane);
           }
   
         /* No pane is allowed if want an index. */          /* No pane is allowed if want an index. */
         if (pane != NULL && (flags & CMD_FIND_WINDOW_INDEX)) {          if (pane != NULL && (flags & CMD_FIND_WINDOW_INDEX)) {

Legend:
Removed from v.1.68  
changed lines
  Added in v.1.69