[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.46 and 1.47

version 1.46, 2019/04/18 12:22:07 version 1.47, 2019/04/25 18:18:55
Line 162 
Line 162 
     struct options_entry *o, int idx)      struct options_entry *o, int idx)
 {  {
         struct options_array_item       *a;          struct options_array_item       *a;
         const char                      *name, *value;          const char                      *name;
         char                            *tmp, *escaped;          char                            *value, *tmp, *escaped;
   
         if (idx != -1) {          if (idx != -1) {
                 xasprintf(&tmp, "%s[%d]", options_name(o), idx);                  xasprintf(&tmp, "%s[%d]", options_name(o), idx);
Line 191 
Line 191 
                 free(escaped);                  free(escaped);
         } else          } else
                 cmdq_print(item, "%s %s", name, value);                  cmdq_print(item, "%s %s", name, value);
           free(value);
   
         free(tmp);          free(tmp);
 }  }

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47