]> Sergey Matveev's repositories - nnn.git/commitdiff
Match the whole path to enable associations based on a prefix dir
authorlostd <lostd@2f30.org>
Sun, 11 Jan 2015 22:28:54 +0000 (00:28 +0200)
committerlostd <lostd@2f30.org>
Sun, 11 Jan 2015 22:28:54 +0000 (00:28 +0200)
noice.c

diff --git a/noice.c b/noice.c
index 2aa320492bdd534d0b135207f78c40e9467b2c4b..aa0e8723077621c0e53b52705021e4752fcd2e1c 100644 (file)
--- a/noice.c
+++ b/noice.c
@@ -645,7 +645,7 @@ nochange:
                                filter = xstrdup(ifilter);
                                goto out;
                        case S_IFREG:
-                               bin = openwith(name);
+                               bin = openwith(newpath);
                                if (bin == NULL) {
                                        printmsg("No association");
                                        free(newpath);