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

Diff for /src/usr.bin/tmux/options.c between version 1.60 and 1.61

version 1.60, 2020/08/25 11:35:32 version 1.61, 2021/01/18 11:14:23
Line 157 
Line 157 
                 case OPTIONS_TABLE_CHOICE:                  case OPTIONS_TABLE_CHOICE:
                         s = xstrdup(o->tableentry->choices[ov->number]);                          s = xstrdup(o->tableentry->choices[ov->number]);
                         break;                          break;
                 case OPTIONS_TABLE_STRING:                  default:
                 case OPTIONS_TABLE_COMMAND:  
                         fatalx("not a number option type");                          fatalx("not a number option type");
                 }                  }
                 return (s);                  return (s);
Line 311 
Line 310 
         case OPTIONS_TABLE_CHOICE:          case OPTIONS_TABLE_CHOICE:
                 s = xstrdup(oe->choices[oe->default_num]);                  s = xstrdup(oe->choices[oe->default_num]);
                 break;                  break;
           default:
                   fatalx("unknown option type");
         }          }
         return (s);          return (s);
 }  }
Line 703 
Line 704 
         if (o == NULL)          if (o == NULL)
                 fatalx("missing option %s", name);                  fatalx("missing option %s", name);
         if (!OPTIONS_IS_NUMBER(o))          if (!OPTIONS_IS_NUMBER(o))
             fatalx("option %s is not a number", name);                  fatalx("option %s is not a number", name);
         return (o->value.number);          return (o->value.number);
 }  }
   

Legend:
Removed from v.1.60  
changed lines
  Added in v.1.61