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;
|
||||
while (*end) {
|
||||
while (*end != '\n')
|
||||
++end;
|
||||
|
||||
if (start == end) {
|
||||
++end;
|
||||
continue;
|
||||
if (*end == '\n') {
|
||||
dprintf(fd, "%*c%.*s",
|
||||
xchartohex(*start), ' ', (int)(end - start), start + 1);
|
||||
start = end + 1;
|
||||
}
|
||||
|
||||
dprintf(fd, "%*c%.*s", xchartohex(*start), ' ', (int)(end - start), start + 1);
|
||||
start = ++end;
|
||||
++end;
|
||||
}
|
||||
|
||||
dprintf(fd, "\nVOLUME: %s of ", coolsize(get_fs_info(path, FREE)));
|
||||
|
|
Loading…
Reference in a new issue