mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Fix #890: wrong macro
This commit is contained in:
parent
317076b893
commit
381b251fd0
|
@ -6277,12 +6277,12 @@ nochange:
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cfg.useeditor
|
if (cfg.useeditor
|
||||||
#ifdef FILE_MIME
|
#ifdef FILE_MIME_OPTS
|
||||||
&& get_output(g_buf, CMD_LEN_MAX, "file", FILE_MIME_OPTS, newpath, FALSE)
|
&& get_output(g_buf, CMD_LEN_MAX, "file", FILE_MIME_OPTS, newpath, 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(g_buf, CMD_LEN_MAX, "file", "-b", newpath, FALSE)
|
&& get_output(g_buf, CMD_LEN_MAX, "file", "-bL", newpath, FALSE)
|
||||||
&& strstr(g_buf, "text")
|
&& strstr(g_buf, "text")
|
||||||
#endif
|
#endif
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in a new issue