From 4c592759a29702b8daa9e92028a5ecef95b9a393 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Mon, 17 Jul 2017 14:18:25 +0200 Subject: mseq: use first message of range for -c and -C. --- mseq.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mseq.c') diff --git a/mseq.c b/mseq.c index 1b27104..efe8ec0 100644 --- a/mseq.c +++ b/mseq.c @@ -251,6 +251,9 @@ stdinmode() void overridecur(char *file) { + static int once = 0; + if (once++) + return; while (*file == ' ') file++; setenv("MAILDOT", file, 1); @@ -259,6 +262,9 @@ overridecur(char *file) void setcur(char *file) { + static int once = 0; + if (once++) + return; while (*file == ' ') file++; unsetenv("MAILDOT"); -- cgit 1.4.1