From: lostd Date: Sun, 11 Jan 2015 22:28:54 +0000 (+0200) Subject: Match the whole path to enable associations based on a prefix dir X-Git-Tag: v1.0~92^2~96 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=57642a941010cc523808631bb1ef3c31f7de04ae;p=nnn.git Match the whole path to enable associations based on a prefix dir --- diff --git a/noice.c b/noice.c index 2aa32049..aa0e8723 100644 --- 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);