mirror of
https://github.com/jarun/nnn.git
synced 2025-03-19 04:49:49 +00:00
Revert "No need to manually strip trailing slashes"
This reverts commit abd301333d
.
This commit is contained in:
parent
ce7411e93a
commit
9a14dcd8d2
1 changed files with 7 additions and 0 deletions
7
noice.c
7
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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue