From: sin Date: Wed, 22 Oct 2014 13:18:15 +0000 (+0100) Subject: No need to manually strip trailing slashes X-Git-Tag: v1.0~92^2~179 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=abd301333da81b72070fbb575dcd0824d3af038e;p=nnn.git No need to manually strip trailing slashes We use realpath() now. --- diff --git a/noice.c b/noice.c index 573c90ad..b7f3ba08 100644 --- a/noice.c +++ b/noice.c @@ -491,13 +491,6 @@ redraw: /* Clean screen */ erase(); - /* Strip trailing slashes */ - for (i = strlen(path) - 1; i > 0; i--) - if (path[i] == '/') - path[i] = '\0'; - else - break; - DPRINTF_D(cur); DPRINTF_S(path);