From 150347d8e7981dea5bdedd3a08c25f7e2bd4d61e Mon Sep 17 00:00:00 2001 From: "Steffen \"Daode\" Nurpmeso" Date: Wed, 15 Jan 2014 15:59:17 +0100 Subject: [PATCH] Add (temporary?) global list_saw_numbers --- list.c | 6 ++++++ nail.h | 1 + 2 files changed, 7 insertions(+) diff --git a/list.c b/list.c index 79a834baa..dcb5420b0 100644 --- a/list.c +++ b/list.c @@ -83,7 +83,9 @@ getmsglist(char *buf, int *vector, int flags) struct message *mp; int mc; + list_saw_numbers = msglist_is_single = FAL0; + if (msgCount == 0) { *vector = 0; return 0; @@ -226,6 +228,7 @@ number: printf(tr(112, "No numbers mixed with *\n")); markall_ret(-1) } + list_saw_numbers = TRU1; mc++; other++; if (beg != 0) { @@ -402,6 +405,7 @@ number: break; case TERROR: + list_saw_numbers = TRU1; msglist_is_single = FAL0; markall_ret(-1) } @@ -618,6 +622,8 @@ getrawlist(const char *line, size_t linesize, char **argv, int argc, int argn; char *linebuf; + list_saw_numbers = FAL0; + argn = 0; cp = line; linebuf = ac_alloc(linesize + 1); diff --git a/nail.h b/nail.h index bc9c62975..b3e4c56b5 100644 --- a/nail.h +++ b/nail.h @@ -1378,6 +1378,7 @@ VL int inhook; /* Currently executing a hook */ VL bool_t exec_last_comm_error; /* Last execute() command failed */ VL bool_t edit; /* Indicates editing a file */ VL bool_t did_print_dot; /* Current message has been printed */ +VL bool_t list_saw_numbers; /* Last *LIST saw numerics */ VL bool_t msglist_is_single; /* Last NDMLIST/MSGLIST chose 1 msg */ VL bool_t loading; /* Loading user definitions */ VL bool_t sourcing; /* Currently reading variant file */ -- 2.11.4.GIT