]> Sergey Matveev's repositories - nnn.git/commitdiff
No need to manually strip trailing slashes
authorsin <sin@2f30.org>
Wed, 22 Oct 2014 13:18:15 +0000 (14:18 +0100)
committersin <sin@2f30.org>
Wed, 22 Oct 2014 13:18:15 +0000 (14:18 +0100)
We use realpath() now.

noice.c

diff --git a/noice.c b/noice.c
index 573c90adbe1ab35369f49bb523430a87966fb786..b7f3ba08f1a311108dc0125a94d4c11c2ea093d3 100644 (file)
--- 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);