mirror of
https://github.com/jarun/nnn.git
synced 2025-03-18 20:39:45 +00:00
Remove extra loop
This commit is contained in:
parent
278280a741
commit
5e5ca2fc95
1 changed files with 5 additions and 8 deletions
13
src/nnn.c
13
src/nnn.c
|
@ -2293,16 +2293,13 @@ static bool show_help(char *path)
|
||||||
|
|
||||||
start = end = helpstr;
|
start = end = helpstr;
|
||||||
while (*end) {
|
while (*end) {
|
||||||
while (*end != '\n')
|
if (*end == '\n') {
|
||||||
++end;
|
dprintf(fd, "%*c%.*s",
|
||||||
|
xchartohex(*start), ' ', (int)(end - start), start + 1);
|
||||||
if (start == end) {
|
start = end + 1;
|
||||||
++end;
|
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dprintf(fd, "%*c%.*s", xchartohex(*start), ' ', (int)(end - start), start + 1);
|
++end;
|
||||||
start = ++end;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dprintf(fd, "\nVOLUME: %s of ", coolsize(get_fs_info(path, FREE)));
|
dprintf(fd, "\nVOLUME: %s of ", coolsize(get_fs_info(path, FREE)));
|
||||||
|
|
Loading…
Add table
Reference in a new issue