summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-02-11 17:08:52 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-02-11 17:08:52 +0100
commitc781929899dd281db89ab29b472c5d92393db0d5 (patch)
tree0ea4800dc98b592deef60b990cbc6b9e876d1508 /src
parent668fad7ad971b42c90222189acf7380955622e58 (diff)
Unset "draw info" flag when encountering --info ';whatever'
Otherwise, several --info switches will not properly override each other
Diffstat (limited to 'src')
-rw-r--r--src/options.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/options.c b/src/options.c
index b34dbe9..37fad88 100644
--- a/src/options.c
+++ b/src/options.c
@@ -753,10 +753,12 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
break;
case 234:
opt.info_cmd = estrdup(optarg);
- if (opt.info_cmd[0] == ';')
+ if (opt.info_cmd[0] == ';') {
+ opt.draw_info = 0;
opt.info_cmd++;
- else
+ } else {
opt.draw_info = 1;
+ }
break;
case 235:
opt.force_aliasing = 1;