~kevin8t8/mutt

312e9bd9539260a175aedf22a1d86cf50372d721 — Kevin McCarthy 9 days ago 7fe1aaa
Fix MuttLisp extract_token() call to remove trailing whitespace.

MoreArgs() doesn't look for whitespace, and so assumes
mutt_extract_token() will remove trailing whitespace too.
1 files changed, 3 insertions(+), 1 deletions(-)

M init.c
M init.c => init.c +3 -1
@@ 150,7 150,9 @@ int mutt_extract_token (BUFFER *dest, BUFFER *tok, int flags)
  if ((*tok->dptr == '(') && !(flags & MUTT_TOKEN_NOLISP) &&
      ((flags & MUTT_TOKEN_LISP) || option (OPTMUTTLISPINLINEEVAL)))
  {
    return mutt_lisp_eval_list (dest, tok);
    int rc = mutt_lisp_eval_list (dest, tok);
    SKIPWS (tok->dptr);
    return rc;
  }

  while ((ch = *tok->dptr))