]> Sergey Matveev's repositories - nnn.git/commitdiff
Disable filterinfo if file details enabled
authorArun Prakash Jana <engineerarun@gmail.com>
Sat, 22 Jan 2022 15:36:57 +0000 (21:06 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sat, 22 Jan 2022 15:36:57 +0000 (21:06 +0530)
src/nnn.c

index 6ea4437bf5c125c5ce47f2aeb76cc5dede596a7a..900ed00fb83774588c872d1e017becfec7933606 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -3165,12 +3165,13 @@ static void showfilterinfo(void)
 
        i = getorderstr(info);
 
-       snprintf(info + i, REGEX_MAX - i - 1, "  %s [/], %s [:]",
-                (cfg.regex ? "reg" : "str"),
-                ((fnstrstr == &strcasestr) ? "ic" : "noic"));
-
        if (cfg.fileinfo && ndents && get_output("file", "-b", pdents[cur].name, -1, FALSE, FALSE))
                mvaddstr(xlines - 2, 2, g_buf);
+       else {
+               snprintf(info + i, REGEX_MAX - i - 1, "  %s [/], %s [:]",
+                        (cfg.regex ? "reg" : "str"),
+                        ((fnstrstr == &strcasestr) ? "ic" : "noic"));
+       }
 
        mvaddstr(xlines - 2, xcols - xstrlen(info), info);
 }