avoid unnecessary state saving for when we resize
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3496 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
diff --git a/src/text.c b/src/text.c
index 4b6fa32..1c1727e 100644
--- a/src/text.c
+++ b/src/text.c
@@ -1656,8 +1656,12 @@
edit_refresh();
#ifndef NANO_TINY
+ /* We're going to set jump_buf so that we return here after a
+ * SIGWINCH instead of to main(). Indicate this. */
+ jump_buf_main = FALSE;
+
/* Return here after a SIGWINCH. */
- sigsetjmp(jmpbuf, 1);
+ sigsetjmp(jump_buf, 1);
#endif
statusbar(_("Can now UnJustify!"));