]> Sergey Matveev's repositories - nnn.git/commitdiff
state.runctx now retains bitwidth as cfg.curctx
author0xACE <0xaced@gmail.com>
Thu, 11 Feb 2021 03:11:54 +0000 (04:11 +0100)
committer0xACE <0xaced@gmail.com>
Thu, 11 Feb 2021 03:11:54 +0000 (04:11 +0100)
Didn't test this out, but judging by the name of the variable this
should be a bugfix

src/nnn.c

index 623884733bdfbb77384f9b3b6b4b1edb0fbab2bb..ed5f537a91d4c1815827a07f272d29066d7782c9 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -324,13 +324,13 @@ typedef struct {
        uint_t picker     : 1;  /* Write selection to user-specified file */
        uint_t pickraw    : 1;  /* Write selection to stdout before exit */
        uint_t runplugin  : 1;  /* Choose plugin mode */
-       uint_t runctx     : 2;  /* The context in which plugin is to be run */
+       uint_t runctx     : 3;  /* The context in which plugin is to be run */
        uint_t selmode    : 1;  /* Set when selecting files */
        uint_t oldcolor   : 1;  /* Use older colorscheme */
        uint_t stayonsel        : 1;  /* Disable auto-proceed on select */
        uint_t dirctx     : 1;  /* Show dirs in context color */
        uint_t uidgid     : 1;  /* Show owner and group info */
-       uint_t reserved   : 10; /* Adjust when adding/removing a field */
+       uint_t reserved   : 9; /* Adjust when adding/removing a field */
 } runstate;
 
 /* Contexts or workspaces */