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

Diff for /src/usr.bin/tmux/status.c between version 1.8 and 1.9

version 1.8, 2009/07/14 19:11:58 version 1.9, 2009/07/15 07:50:34
Line 898 
Line 898 
         const struct set_option_entry  *optent;          const struct set_option_entry  *optent;
         ARRAY_DECL(, const char *)      list;          ARRAY_DECL(, const char *)      list;
         char                           *prefix, *s2;          char                           *prefix, *s2;
         u_int                           i;          u_int                           i;
         size_t                          j;          size_t                          j;
   
         if (*s == '\0')          if (*s == '\0')
Line 910 
Line 910 
                 if (strncmp((*cmdent)->name, s, strlen(s)) == 0)                  if (strncmp((*cmdent)->name, s, strlen(s)) == 0)
                         ARRAY_ADD(&list, (*cmdent)->name);                          ARRAY_ADD(&list, (*cmdent)->name);
         }          }
         for (i = 0; i < NSETOPTION; i++) {          for (optent = set_option_table; optent->name != NULL; optent++) {
                 optent = &set_option_table[i];  
                 if (strncmp(optent->name, s, strlen(s)) == 0)                  if (strncmp(optent->name, s, strlen(s)) == 0)
                         ARRAY_ADD(&list, optent->name);                          ARRAY_ADD(&list, optent->name);
         }          }
         for (i = 0; i < NSETWINDOWOPTION; i++) {          for (optent = set_window_option_table; optent->name != NULL; optent++) {
                 optent = &set_window_option_table[i];  
                 if (strncmp(optent->name, s, strlen(s)) == 0)                  if (strncmp(optent->name, s, strlen(s)) == 0)
                         ARRAY_ADD(&list, optent->name);                          ARRAY_ADD(&list, optent->name);
         }          }

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9