From 67962efbd503295d1eb8d6cf210432337af4c2ae Mon Sep 17 00:00:00 2001 From: 0xACE <0xaced@gmail.com> Date: Thu, 11 Feb 2021 04:11:54 +0100 Subject: [PATCH] state.runctx now retains bitwidth as cfg.curctx Didn't test this out, but judging by the name of the variable this should be a bugfix --- src/nnn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nnn.c b/src/nnn.c index 62388473..ed5f537a 100644 --- 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 */