nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit e140e34483b37a19012142a29bc891d4b2aaae26
parent fe4ea8a029940f3912e4d158c8bc13313ecb6e05
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Sat, 22 Jan 2022 21:06:57 +0530

Disable filterinfo if file details enabled

Diffstat:
Msrc/nnn.c | 9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git 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); }