From c781929899dd281db89ab29b472c5d92393db0d5 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 11 Feb 2019 17:08:52 +0100 Subject: Unset "draw info" flag when encountering --info ';whatever' Otherwise, several --info switches will not properly override each other --- src/options.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3