Browse Source

Press 'Enter' to confirm multiple context quit

master
Arun Prakash Jana 6 years ago
parent
commit
995b0671e7
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/nnn.c

+ 2
- 2
src/nnn.c View File

@@ -3338,11 +3338,11 @@ nochange:
case SEL_QUIT: case SEL_QUIT:
for (r = 0; r < MAX_CTX; ++r) for (r = 0; r < MAX_CTX; ++r)
if (r != cfg.curctx && g_ctx[r].c_cfg.ctxactive) { 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; break;
} }


if (!(r == MAX_CTX || r == 'y'))
if (!(r == MAX_CTX || r == 13))
break; break;


if (sel == SEL_CDQUIT) { if (sel == SEL_CDQUIT) {


Loading…
Cancel
Save