]> Sergey Matveev's repositories - nnn.git/commitdiff
Press 'Enter' to confirm multiple context quit
authorArun Prakash Jana <engineerarun@gmail.com>
Mon, 12 Nov 2018 18:07:32 +0000 (23:37 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Mon, 12 Nov 2018 18:09:02 +0000 (23:39 +0530)
src/nnn.c

index 9b446dd25dacff135ad43d47dc4e7eee000cf02c..252781f772725ba7739b7b58aef5ba0eb55967cb 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -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) {