mirror of
https://github.com/jarun/nnn.git
synced 2025-03-18 20:39:45 +00:00
No need to manually strip trailing slashes
We use realpath() now.
This commit is contained in:
parent
9d25101ad9
commit
abd301333d
1 changed files with 0 additions and 7 deletions
7
noice.c
7
noice.c
|
@ -491,13 +491,6 @@ redraw:
|
||||||
/* Clean screen */
|
/* Clean screen */
|
||||||
erase();
|
erase();
|
||||||
|
|
||||||
/* Strip trailing slashes */
|
|
||||||
for (i = strlen(path) - 1; i > 0; i--)
|
|
||||||
if (path[i] == '/')
|
|
||||||
path[i] = '\0';
|
|
||||||
else
|
|
||||||
break;
|
|
||||||
|
|
||||||
DPRINTF_D(cur);
|
DPRINTF_D(cur);
|
||||||
DPRINTF_S(path);
|
DPRINTF_S(path);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue