summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2022-09-21 13:02:40 +0800
committerKevin McCarthy <kevin@8t8.us>2022-10-08 12:37:58 -0700
commit9fb2755dc88b836f062cc5dc6f61d657fd61cf49 (patch)
treee254b249e8e22bcf679098e8e18fdf5f702fff1b
parent619db54f5133cc788513737ca354f91ab54130fc (diff)
Change a few cases of endwin() to call mutt_endwin().
The remaining cases in the Mutt code are special cases, but these two should be fixed. This ensures SigWinch is set.
-rw-r--r--commands.c2
-rw-r--r--compress.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/commands.c b/commands.c
index 38886c19..e8d213ca 100644
--- a/commands.c
+++ b/commands.c
@@ -490,7 +490,7 @@ static void pipe_msg (HEADER *h, FILE *fp, int decode, int print)
{
if (!crypt_valid_passphrase(h->security))
return;
- endwin ();
+ mutt_endwin (NULL);
}
if (decode)
diff --git a/compress.c b/compress.c
index 93b53881..49c78a75 100644
--- a/compress.c
+++ b/compress.c
@@ -402,7 +402,7 @@ execute_command (CONTEXT *ctx, const char *command, const char *progress)
mutt_message (progress, ctx->realpath);
mutt_block_signals();
- endwin();
+ mutt_endwin (NULL);
fflush (stdout);
expand_command_str (ctx, command, sys_cmd, sizeof (sys_cmd));