]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix #890: wrong macro
authorArun Prakash Jana <engineerarun@gmail.com>
Thu, 18 Mar 2021 17:05:59 +0000 (22:35 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Thu, 18 Mar 2021 17:05:59 +0000 (22:35 +0530)
src/nnn.c

index d587c8be8c2487f24e89e00b8bbaed87d5fd5022..0fbaf1a21211c70eb04137717c9550481d0245cc 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -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
                        ) {