From 381b251fd045832fb75443f3f57efe1386db84a9 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Thu, 18 Mar 2021 22:35:59 +0530 Subject: [PATCH] Fix #890: wrong macro --- src/nnn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nnn.c b/src/nnn.c index d587c8be..0fbaf1a2 100644 --- 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 ) {