mirror of
https://github.com/jarun/nnn.git
synced 2024-12-01 02:49:44 +00:00
Remove extra loop
This commit is contained in:
parent
278280a741
commit
5e5ca2fc95
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…
Reference in a new issue