1
1
mirror of https://github.com/jarun/nnn.git synced 2024-09-21 09:57:55 +03:00

Rename macro

This commit is contained in:
Arun Prakash Jana 2018-11-25 21:06:47 +05:30
parent d065666205
commit 9cc627459d
No known key found for this signature in database
GPG Key ID: A75979F35C080412
2 changed files with 4 additions and 4 deletions

View File

@ -3331,7 +3331,7 @@ nochange:
case SEL_LOCK: case SEL_LOCK:
spawn(utils[LOCKER], NULL, NULL, NULL, F_NORMAL | F_SIGINT); spawn(utils[LOCKER], NULL, NULL, NULL, F_NORMAL | F_SIGINT);
break; break;
case SEL_CDQUIT: // fallthrough case SEL_QUITCD: // fallthrough
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) {
@ -3342,7 +3342,7 @@ nochange:
if (!(r == MAX_CTX || r == 13)) if (!(r == MAX_CTX || r == 13))
break; break;
if (sel == SEL_CDQUIT) { if (sel == SEL_QUITCD) {
/* In vim picker mode, clear selection and exit */ /* In vim picker mode, clear selection and exit */
if (cfg.picker) { if (cfg.picker) {
copybufpos = 0; copybufpos = 0;

View File

@ -84,7 +84,7 @@ enum action {
SEL_RUNARG, SEL_RUNARG,
SEL_LOCK, SEL_LOCK,
SEL_QUITCTX, SEL_QUITCTX,
SEL_CDQUIT, SEL_QUITCD,
SEL_QUIT, SEL_QUIT,
}; };
@ -232,7 +232,7 @@ static struct key bindings[] = {
/* Quit a context */ /* Quit a context */
{ 'q', SEL_QUITCTX, "", "" }, { 'q', SEL_QUITCTX, "", "" },
/* Change dir on quit */ /* Change dir on quit */
{ CONTROL('G'), SEL_CDQUIT, "", "" }, { CONTROL('G'), SEL_QUITCD, "", "" },
/* Quit */ /* Quit */
{ 'Q', SEL_QUIT, "", "" }, { 'Q', SEL_QUIT, "", "" },
{ CONTROL('Q'), SEL_QUIT, "", "" }, { CONTROL('Q'), SEL_QUIT, "", "" },