mirror of
https://github.com/jarun/nnn.git
synced 2025-01-16 05:46:40 +00:00
Disable filterinfo if file details enabled
This commit is contained in:
parent
fe4ea8a029
commit
e140e34483
|
@ -3165,12 +3165,13 @@ static void showfilterinfo(void)
|
||||||
|
|
||||||
i = getorderstr(info);
|
i = getorderstr(info);
|
||||||
|
|
||||||
|
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 [:]",
|
snprintf(info + i, REGEX_MAX - i - 1, " %s [/], %s [:]",
|
||||||
(cfg.regex ? "reg" : "str"),
|
(cfg.regex ? "reg" : "str"),
|
||||||
((fnstrstr == &strcasestr) ? "ic" : "noic"));
|
((fnstrstr == &strcasestr) ? "ic" : "noic"));
|
||||||
|
}
|
||||||
if (cfg.fileinfo && ndents && get_output("file", "-b", pdents[cur].name, -1, FALSE, FALSE))
|
|
||||||
mvaddstr(xlines - 2, 2, g_buf);
|
|
||||||
|
|
||||||
mvaddstr(xlines - 2, xcols - xstrlen(info), info);
|
mvaddstr(xlines - 2, xcols - xstrlen(info), info);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue