1
1
mirror of https://github.com/jarun/nnn.git synced 2024-11-10 15:13:51 +03:00

Press 'Enter' to confirm multiple context quit

This commit is contained in:
Arun Prakash Jana 2018-11-12 23:37:32 +05:30
parent d9ff3a3588
commit 995b0671e7
No known key found for this signature in database
GPG Key ID: A75979F35C080412

View File

@ -3338,11 +3338,11 @@ nochange:
case SEL_QUIT:
for (r = 0; r < MAX_CTX; ++r)
if (r != cfg.curctx && g_ctx[r].c_cfg.ctxactive) {
r = get_input("press 'y' to quit all contexts");
r = get_input("Quit all contexts? ('Enter' confirms)");
break;
}
if (!(r == MAX_CTX || r == 'y'))
if (!(r == MAX_CTX || r == 13))
break;
if (sel == SEL_CDQUIT) {