From 58017a86076fc1ffffb4c4b684ba7d2eee860ce7 Mon Sep 17 00:00:00 2001 From: "Steffen (Daode) Nurpmeso" Date: Wed, 17 Sep 2014 21:15:40 +0200 Subject: [PATCH] Fix *newmail* (oops, ",$s//" no-no-no, "%s//" yes!).. [f2a45b4] (Add enum fedit_mode and use it for setfile()s, 2014-07-07) turned a plain "int newmail" argument into a bit carrier in order to be able to implement the `File' command (open given mailbox readonly). Unfortunately one caller wasn't updated, which resulted in buggy *newmail* behaviour (manual `newmail' works all the time). --- lex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lex.c b/lex.c index be05ccc1..c4c16913 100644 --- a/lex.c +++ b/lex.c @@ -692,7 +692,7 @@ commands(void) size_t odot = PTR2SIZE(dot - message); bool_t odid = did_print_dot; - setfile(mailname, 1); + setfile(mailname, FEDIT_NEWMAIL); if (mb.mb_type != MB_IMAP) { dot = message + odot; did_print_dot = odid; -- 2.11.4.GIT