1
1
mirror of https://github.com/jarun/nnn.git synced 2024-11-11 14:44:20 +03:00

Be case insensitive for file extensions

This commit is contained in:
Alexander Huemer 2015-05-04 23:19:20 +02:00 committed by sin
parent d337e25fb3
commit 2ab57e7799

View File

@ -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;