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

Diff for /src/usr.bin/tmux/cmd-show-options.c between version 1.38 and 1.39

version 1.38, 2017/01/18 10:08:05 version 1.39, 2017/01/24 19:11:46
Line 92 
Line 92 
         const char      *name;          const char      *name;
         const char      *value;          const char      *value;
         char            *tmp, *escaped;          char            *tmp, *escaped;
           u_int            size, i;
   
         if (idx != -1) {          if (idx != -1) {
                 xasprintf(&tmp, "%s[%d]", options_name(o), idx);                  xasprintf(&tmp, "%s[%d]", options_name(o), idx);
                 name = tmp;                  name = tmp;
         } else {          } else {
                   if (options_array_size(o, &size) != -1) {
                           for (i = 0; i < size; i++) {
                                   if (options_array_get(o, i) == NULL)
                                           continue;
                                   cmd_show_options_print(self, item, o, i);
                           }
                           return;
                   }
                 tmp = NULL;                  tmp = NULL;
                 name = options_name(o);                  name = options_name(o);
         }          }

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39