mirror of
https://github.com/jarun/nnn.git
synced 2025-03-14 10:44:05 +00:00
Get rid of clearinfoln()
This commit is contained in:
parent
3490a959be
commit
9c36f0df34
1 changed files with 4 additions and 9 deletions
13
src/nnn.c
13
src/nnn.c
|
@ -1297,12 +1297,6 @@ static void msg(const char *message)
|
||||||
dprintf(STDERR_FILENO, "%s\n", message);
|
dprintf(STDERR_FILENO, "%s\n", message);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void clearinfoln(void)
|
|
||||||
{
|
|
||||||
move(xlines - 2, 0);
|
|
||||||
clrtoeol();
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef KEY_RESIZE
|
#ifdef KEY_RESIZE
|
||||||
static void handle_key_resize()
|
static void handle_key_resize()
|
||||||
{
|
{
|
||||||
|
@ -1313,7 +1307,10 @@ static void handle_key_resize()
|
||||||
/* Clear the old prompt */
|
/* Clear the old prompt */
|
||||||
static void clearoldprompt(void)
|
static void clearoldprompt(void)
|
||||||
{
|
{
|
||||||
clearinfoln();
|
// clear info line
|
||||||
|
move(xlines - 2, 0);
|
||||||
|
clrtoeol();
|
||||||
|
|
||||||
tolastln();
|
tolastln();
|
||||||
clrtoeol();
|
clrtoeol();
|
||||||
handle_key_resize();
|
handle_key_resize();
|
||||||
|
@ -3156,7 +3153,6 @@ static void showfilterinfo(void)
|
||||||
(cfg.regex ? "reg" : "str"),
|
(cfg.regex ? "reg" : "str"),
|
||||||
((fnstrstr == &strcasestr) ? "ic" : "noic"));
|
((fnstrstr == &strcasestr) ? "ic" : "noic"));
|
||||||
|
|
||||||
clearinfoln();
|
|
||||||
#ifdef FILEINFO
|
#ifdef FILEINFO
|
||||||
if (ndents && get_output("file", "-b", pdents[cur].name, -1, FALSE, FALSE))
|
if (ndents && get_output("file", "-b", pdents[cur].name, -1, FALSE, FALSE))
|
||||||
mvaddstr(xlines - 2, 2, g_buf);
|
mvaddstr(xlines - 2, 2, g_buf);
|
||||||
|
@ -3442,7 +3438,6 @@ static int filterentries(char *path, char *lastname)
|
||||||
showfilter(ln);
|
showfilter(ln);
|
||||||
}
|
}
|
||||||
end:
|
end:
|
||||||
clearinfoln();
|
|
||||||
|
|
||||||
/* Save last working filter in-filter */
|
/* Save last working filter in-filter */
|
||||||
if (ln[1])
|
if (ln[1])
|
||||||
|
|
Loading…
Add table
Reference in a new issue