Support key 'q' to exit extra screens

This commit is contained in:
Arun Prakash Jana 2017-04-14 22:56:06 +05:30
parent 58c2000de6
commit 0b4056727f
No known key found for this signature in database
GPG key ID: A75979F35C080412

12
nnn.c
View file

@ -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;
}