From 0bfec6e58d42ba361a71259072491c1491052431 Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Mon, 25 Apr 2005 20:08:29 +0000
Subject: [PATCH] minor bits: fix slang compilation by calling clearok(TRUE)
 and wrefresh() on edit instead of curscr, since slang's curses emulation
 doesn't include a curscr equivalent; and revert Jordi's removal of a space in
 the main help text, as its second paragraph won't be properly indented by one
 space without it

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

diff --git a/ChangeLog b/ChangeLog
index 8a3db4d8..400003d7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -20,8 +20,6 @@ CVS code -
 	- Don't treat NANO_CANCEL_KEY as NANO_EXIT_KEY anymore, for
 	  consistency. (DLR)
 - nano.c:
-  help_init()
-	- Remove extra space from main help text (Jordi).
   print1opt_full()
 	- If desc should be empty, allow it to be NULL instead of
 	  "", since the latter is not necessarily translated as "".
@@ -38,7 +36,7 @@ CVS code -
 	- Don't treat NANO_CANCEL_KEY as NANO_EXIT_KEY anymore, for
 	  consistency. (DLR)
   total_update()
-	- Simplify to call clearok(TRUE) and wrefresh() on curscr, which
+	- Simplify to call clearok(TRUE) and wrefresh() on edit, which
 	  updates the entire screen in fewer function calls. (DLR)
 - THANKS:
 	- Add new translators to the credits.
diff --git a/src/nano.c b/src/nano.c
index 7e4e124f..137d0048 100644
--- a/src/nano.c
+++ b/src/nano.c
@@ -400,7 +400,7 @@ void help_init(void)
 		"showing the file being edited.  The status line is "
 		"the third line from the bottom and shows important "
 		"messages.  The bottom two lines show the most "
-		"commonly used shortcuts in the editor.\n\n");
+		"commonly used shortcuts in the editor.\n\n ");
 	htx[1] = N_("The notation for shortcuts is as follows: "
 		"Control-key sequences are notated with a caret (^) "
 		"symbol and can be entered either by using the Control "
diff --git a/src/winio.c b/src/winio.c
index f07d6d78..bf589376 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -3742,8 +3742,8 @@ int do_yesno(bool all, const char *msg)
 
 void total_update(void)
 {
-    clearok(curscr, TRUE);
-    wrefresh(curscr);
+    clearok(edit, TRUE);
+    wrefresh(edit);
 }
 
 void total_refresh(void)
-- 
GitLab