]> Sergey Matveev's repositories - nnn.git/commitdiff
Rename macro
authorArun Prakash Jana <engineerarun@gmail.com>
Sun, 25 Nov 2018 15:36:47 +0000 (21:06 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sun, 25 Nov 2018 15:36:47 +0000 (21:06 +0530)
src/nnn.c
src/nnn.h

index f763a5ef5530096e02256cb2d3a6645e693e3b41..35df72168aa7f9891651cd1db6a2b74a19cc365c 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -3331,7 +3331,7 @@ nochange:
                case SEL_LOCK:
                        spawn(utils[LOCKER], NULL, NULL, NULL, F_NORMAL | F_SIGINT);
                        break;
-               case SEL_CDQUIT: // fallthrough
+               case SEL_QUITCD: // fallthrough
                case SEL_QUIT:
                        for (r = 0; r < MAX_CTX; ++r)
                                if (r != cfg.curctx && g_ctx[r].c_cfg.ctxactive) {
@@ -3342,7 +3342,7 @@ nochange:
                        if (!(r == MAX_CTX || r == 13))
                                break;
 
-                       if (sel == SEL_CDQUIT) {
+                       if (sel == SEL_QUITCD) {
                                /* In vim picker mode, clear selection and exit */
                                if (cfg.picker) {
                                        copybufpos = 0;
index e7a4d245ce46c6fbcae807e2053db2049094f631..6802167fc72947ac52d56ca66979c84f5ef6f682 100644 (file)
--- a/src/nnn.h
+++ b/src/nnn.h
@@ -84,7 +84,7 @@ enum action {
        SEL_RUNARG,
        SEL_LOCK,
        SEL_QUITCTX,
-       SEL_CDQUIT,
+       SEL_QUITCD,
        SEL_QUIT,
 };
 
@@ -232,7 +232,7 @@ static struct key bindings[] = {
        /* Quit a context */
        { 'q',            SEL_QUITCTX,   "",     "" },
        /* Change dir on quit */
-       { CONTROL('G'),   SEL_CDQUIT,    "",     "" },
+       { CONTROL('G'),   SEL_QUITCD,    "",     "" },
        /* Quit */
        { 'Q',            SEL_QUIT,      "",     "" },
        { CONTROL('Q'),   SEL_QUIT,      "",     "" },