* util.c (util_msglist_command): Check for interruption here
also and that will permit interruption on long commands like "from *"
Showing
1 changed file
with
4 additions
and
0 deletions
... | @@ -349,8 +349,12 @@ util_msglist_command (function_t *func, int argc, char **argv, int set_cursor) | ... | @@ -349,8 +349,12 @@ util_msglist_command (function_t *func, int argc, char **argv, int set_cursor) |
349 | for (i = 0; i < number; i++) | 349 | for (i = 0; i < number; i++) |
350 | { | 350 | { |
351 | cursor = list[i]; | 351 | cursor = list[i]; |
352 | /* NOTE: Should we bail on error also? */ | ||
352 | if (func (1, argv) != 0) | 353 | if (func (1, argv) != 0) |
353 | status = 1; | 354 | status = 1; |
355 | /* Bail out if we receive an interrupt. */ | ||
356 | if (ml_got_interrupt () != 0) | ||
357 | break; | ||
354 | } | 358 | } |
355 | free (list); | 359 | free (list); |
356 | 360 | ... | ... |
-
Please register or sign in to post a comment