mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Pressing Enter is simpler for some checks
This commit is contained in:
parent
e177669dc7
commit
2ab9cfa0d0
|
@ -3217,9 +3217,9 @@ nochange:
|
||||||
if (sel == SEL_CYCLE) {
|
if (sel == SEL_CYCLE) {
|
||||||
(r == CTX_MAX - 1) ? (r = 0) : ++r;
|
(r == CTX_MAX - 1) ? (r = 0) : ++r;
|
||||||
snprintf(newpath, PATH_MAX,
|
snprintf(newpath, PATH_MAX,
|
||||||
"Create context %d? [y/Y]", r + 1);
|
"Create context %d? [Enter]", r + 1);
|
||||||
fd = get_input(newpath);
|
fd = get_input(newpath);
|
||||||
if (fd != 'y' && fd != 'Y')
|
if (fd != '\r')
|
||||||
continue;
|
continue;
|
||||||
} else
|
} else
|
||||||
continue;
|
continue;
|
||||||
|
@ -3918,11 +3918,11 @@ nochange:
|
||||||
case SEL_QUIT:
|
case SEL_QUIT:
|
||||||
for (r = 0; r < CTX_MAX; ++r)
|
for (r = 0; r < CTX_MAX; ++r)
|
||||||
if (r != cfg.curctx && g_ctx[r].c_cfg.ctxactive) {
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(r == CTX_MAX || r == 'y' || r == 'Y'))
|
if (!(r == CTX_MAX || r == '\r'))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (sel == SEL_QUITCD) {
|
if (sel == SEL_QUITCD) {
|
||||||
|
|
Loading…
Reference in a new issue