mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41: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 */
|
||||
printw("\n\n << (D)");
|
||||
while ((*buf = getch()) != 'D');
|
||||
printw("\n\n << (D/q)");
|
||||
while ((*buf = getch()))
|
||||
if (*buf == 'D' || *buf == 'q')
|
||||
break;
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -941,8 +943,10 @@ show_help(void)
|
|||
q Quit\n");
|
||||
|
||||
/* Show exit keys */
|
||||
printw("\n\n << (?)");
|
||||
while ((c = getch()) != '?');
|
||||
printw("\n\n << (?/q)");
|
||||
while ((c = getch()))
|
||||
if (c == '?' || c == 'q')
|
||||
break;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue