From: 0xACE <0xaced@gmail.com> Date: Thu, 11 Feb 2021 03:11:54 +0000 (+0100) Subject: state.runctx now retains bitwidth as cfg.curctx X-Git-Tag: v3.6~18^2 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=67962efbd503295d1eb8d6cf210432337af4c2ae;p=nnn.git 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 --- 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 */