]> Sergey Matveev's repositories - nnn.git/commitdiff
Be case insensitive for file extensions
authorAlexander Huemer <alexander.huemer@xx.vu>
Mon, 4 May 2015 21:19:20 +0000 (23:19 +0200)
committersin <sin@2f30.org>
Tue, 5 May 2015 09:50:11 +0000 (10:50 +0100)
noice.c

diff --git a/noice.c b/noice.c
index 1d34017ca879c259f140903ce226f4bc32faa8c3..8d7f7f1d02d35f63896351a66de232ae3b2a3fd1 100644 (file)
--- a/noice.c
+++ b/noice.c
@@ -193,7 +193,7 @@ openwith(char *file)
 
        for (i = 0; i < LEN(assocs); i++) {
                if (regcomp(&regex, assocs[i].regex,
-                           REG_NOSUB | REG_EXTENDED) != 0)
+                           REG_NOSUB | REG_EXTENDED | REG_ICASE) != 0)
                        continue;
                if (regexec(&regex, file, 0, NULL, 0) == 0) {
                        bin = assocs[i].bin;