Loading ChangeLog +1 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ git HEAD * ~/.fehbg is now a shell script and can be executed directly (sourcing it still works) * --max-dimension: ignore width/height limit of 0 pixels * feh/themes: Support quoting with '' too (previously, only "" worked) Wed, 08 Apr 2015 11:18:41 +0200 Daniel Friesel <derf+feh@finalrewind.org> Loading src/options.c +5 −2 Original line number Diff line number Diff line Loading @@ -236,7 +236,7 @@ static void feh_parse_options_from_string(char *opts) list[num - 1] = feh_string_normalize(s); break; } else if (*t == '\"' && last != '\\') } else if (((*t == '\"') || (*t == '\'')) && last != '\\') inquote = !(inquote); last = *t; } Loading Loading @@ -265,6 +265,9 @@ char *feh_string_normalize(char *str) else if ((*s == '\"') && (last == '\\')) ret[i++] = '\"'; else if ((*s == '\"') && (last == 0)); else if ((*s == '\'') && (last == '\\')) ret[i++] = '\''; else if ((*s == '\'') && (last == 0)); else if ((*s == ' ') && (last == '\\')) ret[i++] = ' '; else Loading @@ -272,7 +275,7 @@ char *feh_string_normalize(char *str) last = *s; } if (i && (ret[i - 1] == '\"')) if (i && ((ret[i - 1] == '\"') || (ret[i - 1] == '\''))) ret[i - 1] = '\0'; else ret[i] = '\0'; Loading Loading
ChangeLog +1 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ git HEAD * ~/.fehbg is now a shell script and can be executed directly (sourcing it still works) * --max-dimension: ignore width/height limit of 0 pixels * feh/themes: Support quoting with '' too (previously, only "" worked) Wed, 08 Apr 2015 11:18:41 +0200 Daniel Friesel <derf+feh@finalrewind.org> Loading
src/options.c +5 −2 Original line number Diff line number Diff line Loading @@ -236,7 +236,7 @@ static void feh_parse_options_from_string(char *opts) list[num - 1] = feh_string_normalize(s); break; } else if (*t == '\"' && last != '\\') } else if (((*t == '\"') || (*t == '\'')) && last != '\\') inquote = !(inquote); last = *t; } Loading Loading @@ -265,6 +265,9 @@ char *feh_string_normalize(char *str) else if ((*s == '\"') && (last == '\\')) ret[i++] = '\"'; else if ((*s == '\"') && (last == 0)); else if ((*s == '\'') && (last == '\\')) ret[i++] = '\''; else if ((*s == '\'') && (last == 0)); else if ((*s == ' ') && (last == '\\')) ret[i++] = ' '; else Loading @@ -272,7 +275,7 @@ char *feh_string_normalize(char *str) last = *s; } if (i && (ret[i - 1] == '\"')) if (i && ((ret[i - 1] == '\"') || (ret[i - 1] == '\''))) ret[i - 1] = '\0'; else ret[i] = '\0'; Loading