From 907725fde82a2c50c56dfc5c1bc26395dccf03e5 Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Fri, 12 Nov 2004 00:09:20 +0000
Subject: [PATCH] revert the handle_sigwinch() change, as other breakage occurs
 when resizing or continuing from a suspend after a justify and it can't be
 properly fixed without a rewrite

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2092 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 ChangeLog  | 4 ----
 src/nano.c | 4 +---
 2 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 0578d699..bf43c6b2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -227,10 +227,6 @@ CVS code -
 	- Make goal a ssize_t instead of an int, since fill is now a
 	  ssize_t, and the position at which a line is broken can be
 	  greater than COLS. (DLR)
-  handle_sigwinch()
-	- Call shortcut_init(FALSE) defore redisplaying the main list,
-	  so that "UnJustify" isn't erroneously displayed after we
-	  resize or after we continue from a suspend. (DLR)
   main()
 	- Tweak the command line parsing routine so that multiple +LINE
 	  flags are properly interpreted in multibuffer mode. (DLR)
diff --git a/src/nano.c b/src/nano.c
index ab87e7c1..08b2ba67 100644
--- a/src/nano.c
+++ b/src/nano.c
@@ -3089,10 +3089,8 @@ void handle_sigwinch(int s)
      * dimensions. */
     window_init();
 
-    /* Redraw the contents of the windows that need it, and display the
-     * shortcut list with UnCut. */
+    /* Redraw the contents of the windows that need it. */
     blank_statusbar();
-    shortcut_init(FALSE);
     display_main_list();
     total_refresh();
 
-- 
GitLab