[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.127 and 1.128

version 1.127, 2019/06/20 11:59:59 version 1.128, 2020/03/17 11:10:12
Line 309 
Line 309 
                 old = xstrdup(options_get_string(oo, oe->name));                  old = xstrdup(options_get_string(oo, oe->name));
                 options_set_string(oo, oe->name, append, "%s", value);                  options_set_string(oo, oe->name, append, "%s", value);
                 new = options_get_string(oo, oe->name);                  new = options_get_string(oo, oe->name);
                   if (strcmp(oe->name, "default-shell") == 0 &&
                       !checkshell(new)) {
                           options_set_string(oo, oe->name, 0, "%s", old);
                           free(old);
                           cmdq_error(item, "not a suitable shell: %s", value);
                           return (-1);
                   }
                 if (oe->pattern != NULL && fnmatch(oe->pattern, new, 0) != 0) {                  if (oe->pattern != NULL && fnmatch(oe->pattern, new, 0) != 0) {
                         options_set_string(oo, oe->name, 0, "%s", old);                          options_set_string(oo, oe->name, 0, "%s", old);
                         free(old);                          free(old);

Legend:
Removed from v.1.127  
changed lines
  Added in v.1.128