Update signatures

This commit is contained in:
KlzXS 2023-01-25 17:37:31 +01:00
parent 8d21e5e832
commit 7abfb77a13
No known key found for this signature in database
GPG Key ID: 721F7586CEB48D6A
1 changed files with 9 additions and 9 deletions

View File

@ -837,7 +837,7 @@ static void move_cursor(int target, int ignore_scrolloff);
static char *load_input(int fd, const char *path); static char *load_input(int fd, const char *path);
static int set_sort_flags(int r); static int set_sort_flags(int r);
static void statusbar(char *path); static void statusbar(char *path);
static bool get_output(char *file, char *arg1, char *arg2, int fdout, bool multi, bool page); static bool get_output(char *file, char *arg1, char *arg2, int fdout, bool page);
#ifndef NOFIFO #ifndef NOFIFO
static void notify_fifo(bool force); static void notify_fifo(bool force);
#endif #endif
@ -3188,7 +3188,7 @@ static void showfilterinfo(void)
i = getorderstr(info); i = getorderstr(info);
if (cfg.fileinfo && ndents && get_output("file", "-b", pdents[cur].name, -1, FALSE, FALSE)) if (cfg.fileinfo && ndents && get_output("file", "-b", pdents[cur].name, -1, FALSE))
mvaddstr(xlines - 2, 2, g_buf); mvaddstr(xlines - 2, 2, g_buf);
else { else {
snprintf(info + i, REGEX_MAX - i - 1, " %s [/], %4s [:]", snprintf(info + i, REGEX_MAX - i - 1, " %s [/], %4s [:]",
@ -4550,7 +4550,7 @@ static bool show_stats(char *fpath)
return FALSE; return FALSE;
while (r) while (r)
get_output(cmds[--r], fpath, NULL, fd, TRUE, FALSE); get_output(cmds[--r], fpath, NULL, fd, FALSE);
close(fd); close(fd);
@ -4697,7 +4697,7 @@ static bool handle_archive(char *fpath /* in-out param */, char op)
if (op == 'x') /* extract */ if (op == 'x') /* extract */
spawn(util, arg, fpath, NULL, F_NORMAL | F_MULTI); spawn(util, arg, fpath, NULL, F_NORMAL | F_MULTI);
else /* list */ else /* list */
get_output(util, arg, fpath, -1, TRUE, TRUE); get_output(util, arg, fpath, -1, TRUE);
if (x_to) { if (x_to) {
if (chdir(xdirname(fpath)) == -1) { if (chdir(xdirname(fpath)) == -1) {
@ -5097,7 +5097,7 @@ static void show_help(const char *path)
char *prog = xgetenv(env_cfg[NNN_HELP], NULL); char *prog = xgetenv(env_cfg[NNN_HELP], NULL);
if (prog) if (prog)
get_output(prog, NULL, NULL, fd, TRUE, FALSE); get_output(prog, NULL, NULL, fd, FALSE);
start = end = helpstr; start = end = helpstr;
while (*end) { while (*end) {
@ -5193,7 +5193,7 @@ static void run_cmd_as_plugin(const char *file, char *runfile, uchar_t flags)
runfile = NULL; runfile = NULL;
if (flags & F_PAGE) if (flags & F_PAGE)
get_output(g_buf, runfile, NULL, -1, TRUE, TRUE); get_output(g_buf, runfile, NULL, -1, TRUE);
else // F_NOTRACE else // F_NOTRACE
spawn(g_buf, runfile, NULL, NULL, flags); spawn(g_buf, runfile, NULL, NULL, flags);
} else } else
@ -6339,7 +6339,7 @@ static void statusbar(char *path)
attron(COLOR_PAIR(cfg.curctx + 1)); attron(COLOR_PAIR(cfg.curctx + 1));
if (cfg.fileinfo && get_output("file", "-b", pdents[cur].name, -1, FALSE, FALSE)) if (cfg.fileinfo && get_output("file", "-b", pdents[cur].name, -1, FALSE))
mvaddstr(xlines - 2, 2, g_buf); mvaddstr(xlines - 2, 2, g_buf);
tolastln(); tolastln();
@ -7059,11 +7059,11 @@ nochange:
if (cfg.useeditor if (cfg.useeditor
#ifdef FILE_MIME_OPTS #ifdef FILE_MIME_OPTS
&& get_output("file", FILE_MIME_OPTS, newpath, -1, FALSE, FALSE) && get_output("file", FILE_MIME_OPTS, newpath, -1, FALSE)
&& is_prefix(g_buf, "text/", 5) && is_prefix(g_buf, "text/", 5)
#else #else
/* no MIME option; guess from description instead */ /* no MIME option; guess from description instead */
&& get_output("file", "-bL", newpath, -1, FALSE, FALSE) && get_output("file", "-bL", newpath, -1, FALSE)
&& strstr(g_buf, "text") && strstr(g_buf, "text")
#endif #endif
) { ) {