Skip to content

Commit

Permalink
do not persist size option -s in config file on Save
Browse files Browse the repository at this point in the history
  • Loading branch information
mintty committed Jul 6, 2016
1 parent d12f8ad commit fbfaa57
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/winmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -1966,14 +1966,10 @@ main(int argc, char *argv[])
maxwidth = true;
else if (strcmp(optarg, "maxheight") == 0)
maxheight = true;
else if (sscanf(optarg, "%u,%u%1s", &cfg.cols, &cfg.rows, (char[2]){}) == 2) {
remember_arg("Columns");
remember_arg("Rows");
}
else if (sscanf(optarg, "%ux%u%1s", &cfg.cols, &cfg.rows, (char[2]){}) == 2) {
remember_arg("Columns");
remember_arg("Rows");
}
else if (sscanf(optarg, "%u,%u%1s", &cfg.cols, &cfg.rows, (char[2]){}) == 2)
;
else if (sscanf(optarg, "%ux%u%1s", &cfg.cols, &cfg.rows, (char[2]){}) == 2)
;
else
error("syntax error in size argument '%s'", optarg);
when 't': set_arg_option("Title", optarg);
Expand Down

0 comments on commit fbfaa57

Please sign in to comment.