noice

small file browser
git clone git://git.2f30.org/noice.git
Log | Files | Refs | README | LICENSE

commit 9a14dcd8d2516e44feaf1a65af4ea8ac76fa33b5
parent ce7411e93ab43cbad335dceb5f1d65f6ec81b174
Author: lostd <lostd@2f30.org>
Date:   Thu Oct 23 18:38:00 +0300

Revert "No need to manually strip trailing slashes"

This reverts commit abd301333da81b72070fbb575dcd0824d3af038e.

Diffstat:
noice.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git 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);