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

Diff for /src/usr.bin/tmux/cmd-set-option.c between version 1.105 and 1.106

version 1.105, 2017/01/15 20:48:41 version 1.106, 2017/01/15 20:50:34
Line 83 
Line 83 
         /* Parse option name and index. */          /* Parse option name and index. */
         name = options_match(args->argv[0], &idx, &ambiguous);          name = options_match(args->argv[0], &idx, &ambiguous);
         if (name == NULL) {          if (name == NULL) {
                   if (args_has(args, 'q'))
                           return (CMD_RETURN_NORMAL);
                 if (ambiguous)                  if (ambiguous)
                         cmdq_error(item, "ambiguous option: %s", args->argv[0]);                          cmdq_error(item, "ambiguous option: %s", args->argv[0]);
                 else                  else
Line 114 
Line 116 
                 }                  }
         }          }
         if (scope == OPTIONS_TABLE_NONE) {          if (scope == OPTIONS_TABLE_NONE) {
                   if (args_has(args, 'q'))
                           return (CMD_RETURN_NORMAL);
                 cmdq_error(item, "%s", cause);                  cmdq_error(item, "%s", cause);
                 free(cause);                  free(cause);
                 return (CMD_RETURN_ERROR);                  return (CMD_RETURN_ERROR);

Legend:
Removed from v.1.105  
changed lines
  Added in v.1.106