mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 13:51:31 +00:00
Support key 'q' to exit extra screens
This commit is contained in:
parent
58c2000de6
commit
0b4056727f
12
nnn.c
12
nnn.c
|
@ -898,8 +898,10 @@ show_stats(char* fpath, char* fname, struct stat *sb)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Show exit keys */
|
/* Show exit keys */
|
||||||
printw("\n\n << (D)");
|
printw("\n\n << (D/q)");
|
||||||
while ((*buf = getch()) != 'D');
|
while ((*buf = getch()))
|
||||||
|
if (*buf == 'D' || *buf == 'q')
|
||||||
|
break;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -941,8 +943,10 @@ show_help(void)
|
||||||
q Quit\n");
|
q Quit\n");
|
||||||
|
|
||||||
/* Show exit keys */
|
/* Show exit keys */
|
||||||
printw("\n\n << (?)");
|
printw("\n\n << (?/q)");
|
||||||
while ((c = getch()) != '?');
|
while ((c = getch()))
|
||||||
|
if (c == '?' || c == 'q')
|
||||||
|
break;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue