]> Sergey Matveev's repositories - nnn.git/commitdiff
Pressing Enter is simpler for some checks
authorArun Prakash Jana <engineerarun@gmail.com>
Mon, 11 Feb 2019 02:57:19 +0000 (08:27 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Mon, 11 Feb 2019 02:57:19 +0000 (08:27 +0530)
src/nnn.c

index bac2c6c766af240f92e9eff077f5e0ab62496905..8eccc4f9e0e439f3b6f4d35e08a8e3c3aea6a7f6 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -3217,9 +3217,9 @@ nochange:
                                        if (sel == SEL_CYCLE) {
                                                (r == CTX_MAX - 1) ? (r = 0) : ++r;
                                                snprintf(newpath, PATH_MAX,
-                                                        "Create context %d? [y/Y]", r + 1);
+                                                        "Create context %d? [Enter]", r + 1);
                                                fd = get_input(newpath);
-                                               if (fd != 'y' && fd != 'Y')
+                                               if (fd != '\r')
                                                        continue;
                                        } else
                                                continue;
@@ -3918,11 +3918,11 @@ nochange:
                case SEL_QUIT:
                        for (r = 0; r < CTX_MAX; ++r)
                                if (r != cfg.curctx && g_ctx[r].c_cfg.ctxactive) {
-                                       r = get_input("Quit all contexts? [y/Y]");
+                                       r = get_input("Quit all contexts? [Enter]");
                                        break;
                                }
 
-                       if (!(r == CTX_MAX || r == 'y' || r == 'Y'))
+                       if (!(r == CTX_MAX || r == '\r'))
                                break;
 
                        if (sel == SEL_QUITCD) {