diff options
| author | 2019-02-11 08:27:19 +0530 | |
|---|---|---|
| committer | 2019-02-11 08:27:19 +0530 | |
| commit | 2ab9cfa0d0a30e725c8f9322ce5ac10e939d0247 (patch) | |
| tree | 670f9a6616a33162a4fd3794f0fef72a89e0f608 | |
| parent | e177669dc7d9543ee21c58910a151e05cca2f9df (diff) | |
| download | nnn-2ab9cfa0d0a30e725c8f9322ce5ac10e939d0247.tar.gz | |
Pressing Enter is simpler for some checks
| -rw-r--r-- | src/nnn.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) { |