From a457c2d2fa1651913418e29bad16989625b35114 Mon Sep 17 00:00:00 2001 From: "Steffen (Daode) Nurpmeso" Date: Mon, 26 Sep 2016 13:18:06 +0200 Subject: [PATCH] (Pseudo) Fix history (non gabbiness) by stripping PS_ARGLIST_MASK --- lex_input.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lex_input.c b/lex_input.c index eccdb71b..d5b77905 100644 --- a/lex_input.c +++ b/lex_input.c @@ -638,6 +638,11 @@ jexec: if(wysh && (cmd->lc_argtype & ARG_ARGMASK) != ARG_WYRALIST) n_err(_("`wysh' prefix doesn't affect `%s'\n"), cmd->lc_name); + /* TODO v15: strip PS_ARGLIST_MASK off, just in case the actual command + * TODO doesn't use any of those list commands which strip this mask, + * TODO and for now we misuse bits for checking relation to history; + * TODO argument state should be property of a per-command carrier instead */ + pstate &= ~PS_ARGLIST_MASK; switch(cmd->lc_argtype & ARG_ARGMASK){ case ARG_MSGLIST: /* Message list defaulting to nearest forward legal message */ -- 2.11.4.GIT