[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.63 and 1.64

version 1.63, 2020/04/13 20:54:15 version 1.64, 2020/05/16 16:02:24
Line 151 
Line 151 
                 xasprintf(&tmp, "%s[%d]", name, idx);                  xasprintf(&tmp, "%s[%d]", name, idx);
                 name = tmp;                  name = tmp;
         } else {          } else {
                 if (options_isarray(o)) {                  if (options_is_array(o)) {
                         a = options_array_first(o);                          a = options_array_first(o);
                         if (a == NULL) {                          if (a == NULL) {
                                 if (!args_has(args, 'v'))                                  if (!args_has(args, 'v'))
Line 168 
Line 168 
                 }                  }
         }          }
   
         value = options_tostring(o, idx, 0);          value = options_to_string(o, idx, 0);
         if (args_has(args, 'v'))          if (args_has(args, 'v'))
                 cmdq_print(item, "%s", value);                  cmdq_print(item, "%s", value);
         else if (options_isstring(o)) {          else if (options_is_string(o)) {
                 escaped = args_escape(value);                  escaped = args_escape(value);
                 if (parent)                  if (parent)
                         cmdq_print(item, "%s* %s", name, escaped);                          cmdq_print(item, "%s* %s", name, escaped);
Line 229 
Line 229 
                 } else                  } else
                         parent = 0;                          parent = 0;
   
                 if (!options_isarray(o))                  if (!options_is_array(o))
                         cmd_show_options_print(self, item, o, -1, parent);                          cmd_show_options_print(self, item, o, -1, parent);
                 else if ((a = options_array_first(o)) == NULL) {                  else if ((a = options_array_first(o)) == NULL) {
                         if (!args_has(args, 'v')) {                          if (!args_has(args, 'v')) {

Legend:
Removed from v.1.63  
changed lines
  Added in v.1.64