From affeda817e1bd6c957311c3feb6950a4b521fb45 Mon Sep 17 00:00:00 2001
From: Chris Allegretta <chrisa@asty.org>
Date: Mon, 18 Dec 2000 04:03:48 +0000
Subject: [PATCH] do_toggle(): - Added fix_editbot() call to fix improper
 redisplay of edit window when using nohelp toggle (bug discovered by Rocco
 Corsi).

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

diff --git a/ChangeLog b/ChangeLog
index 7f0f4746..6d0eba1b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -38,6 +38,9 @@ General
 	- Fix off by one error that was making ^G help in normal mode and
 	  ^_ in pico mode not be displayed in the help (bug discovered by
 	  Rocco Corsi).
+  do_toggle()
+	- Added fix_editbot() call to fix improper redisplay of edit
+	  window when using nohelp toggle (bug discovered by Rocco Corsi).
 - nano.1, nano.1.html:
 	- Updated man page for -b, -e, -f and expanded explanation for -p.
 - utils.c:
diff --git a/nano.c b/nano.c
index 8033fb65..9acc1779 100644
--- a/nano.c
+++ b/nano.c
@@ -2003,6 +2003,7 @@ void do_toggle(int which)
 	wclear(bottomwin);
 	wrefresh(bottomwin);
 	window_init();
+	fix_editbot();
 	edit_refresh();
 	display_main_list();
 	break;
-- 
GitLab