summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2022-09-21 13:03:22 +0800
committerKevin McCarthy <kevin@8t8.us>2022-10-08 12:37:58 -0700
commitfede64d0e2b7801aeeef88163bc94216963485f3 (patch)
treee5566b3b4759a9b4ddcc8c8e5deae9055555b130
parent9fb2755dc88b836f062cc5dc6f61d657fd61cf49 (diff)
Remove unneeded calls in mutt_edit_file().
The mutt_resize_screen() is no longer needed now that mutt_endwin() sets SigWinch. The keypad() and clearok() calls are generally only needed if a program takes over the screen unexpectedly (without Mutt having run endwin()).
-rw-r--r--curs_lib.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/curs_lib.c b/curs_lib.c
index c997b6b0..2f5d0282 100644
--- a/curs_lib.c
+++ b/curs_lib.c
@@ -305,12 +305,6 @@ void mutt_edit_file (const char *editor, const char *data)
mutt_error (_("Error running \"%s\"!"), mutt_b2s (cmd));
mutt_sleep (2);
}
-#if defined (USE_SLANG_CURSES) || defined (HAVE_RESIZETERM)
- /* the terminal may have been resized while the editor owned it */
- mutt_resize_screen ();
-#endif
- keypad (stdscr, TRUE);
- clearok (stdscr, TRUE);
mutt_buffer_pool_release (&cmd);
}