From: Benno Schulenberg Date: Sat, 2 Jan 2016 16:25:50 +0000 (+0000) Subject: Skipping the unneeded reinitialization of the windows; X-Git-Tag: v2.5.1~23 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=97e9476df554fe97100daf0eaf4b7c8c1edffb74;p=nano.git Skipping the unneeded reinitialization of the windows; it will be done when polling the keybuffer. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5521 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 29c0fe0a..b2661166 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2016-01-02 Benno Schulenberg * src/text.c (do_spell, do_formatter): Plug three tiny memory leaks. + * src/text.c (do_alt_speller, do_formatter): There is no need here to + reinitialize the windows; it will be done when polling the keybuffer. 2015-12-31 Benno Schulenberg * src/text.c (do_formatter): Restore the cursor position differently. diff --git a/src/text.c b/src/text.c index c116573a..c8313ef4 100644 --- a/src/text.c +++ b/src/text.c @@ -2760,10 +2760,6 @@ const char *do_alt_speller(char *tempfile_name) /* Turn the cursor back on for sure. */ curs_set(1); - /* The screen might have been resized. If it has, reinitialize all - * the windows based on the new screen dimensions. */ - window_init(); - if (!WIFEXITED(alt_spell_status) || WEXITSTATUS(alt_spell_status) != 0) { #ifndef NANO_TINY /* Turn the mark back on if it was on before. */ @@ -3326,10 +3322,6 @@ void do_formatter(void) /* Turn the cursor back on for sure. */ curs_set(1); - /* The screen might have been resized. If it has, reinitialize all - * the windows based on the new screen dimensions. */ - window_init(); - if (!WIFEXITED(format_status) || WEXITSTATUS(format_status) != 0) finalstatus = invocation_error(openfile->syntax->formatter); else {