Fix #890: wrong macro

This commit is contained in:
Arun Prakash Jana 2021-03-18 22:35:59 +05:30
parent 317076b893
commit 381b251fd0
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -6277,12 +6277,12 @@ nochange:
}
if (cfg.useeditor
#ifdef FILE_MIME
#ifdef FILE_MIME_OPTS
&& get_output(g_buf, CMD_LEN_MAX, "file", FILE_MIME_OPTS, newpath, FALSE)
&& is_prefix(g_buf, "text/", 5)
#else
/* 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")
#endif
) {