aboutsummaryrefslogtreecommitdiffstats
path: root/noice.c
diff options
context:
space:
mode:
authorlostd <lostd@2f30.org>2014-10-23 18:38:00 +0300
committerlostd <lostd@2f30.org>2014-10-23 18:38:00 +0300
commit9a14dcd8d2516e44feaf1a65af4ea8ac76fa33b5 (patch)
tree82fa760926f9170c5dfa65221df6d4dba2523115 /noice.c
parentce7411e93ab43cbad335dceb5f1d65f6ec81b174 (diff)
downloadnoice-9a14dcd8d2516e44feaf1a65af4ea8ac76fa33b5.tar.gz
Revert "No need to manually strip trailing slashes"
This reverts commit abd301333da81b72070fbb575dcd0824d3af038e.
Diffstat (limited to 'noice.c')
-rw-r--r--noice.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/noice.c b/noice.c
index 8eeb7d1..81df907 100644
--- a/noice.c
+++ b/noice.c
@@ -567,6 +567,13 @@ 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);
Un proyecto texto-plano.xyz