diff options
-rw-r--r-- | noice.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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); |