commit 44e73dfc9675030b80218b4837876a6619346be3
parent 9239d742d6268dccbb1e198e1e562f7913bbea37
Author: Chris Allegretta <chrisa@asty.org>
Date: Thu, 7 Sep 2000 03:37:38 +0000
Show two lines from previous page in help file when paging down
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@211 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
2 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/po/nano.pot b/po/nano.pot
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2000-09-06 11:26-0400\n"
+"POT-Creation-Date: 2000-09-06 23:44-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -832,14 +832,14 @@ msgstr ""
msgid "line %d of %d (%.0f%%), character %d of %d (%.0f%%)"
msgstr ""
-#: winio.c:1262
+#: winio.c:1266
msgid "Dumping file buffer to stderr...\n"
msgstr ""
-#: winio.c:1264
+#: winio.c:1268
msgid "Dumping cutbuffer to stderr...\n"
msgstr ""
-#: winio.c:1266
+#: winio.c:1270
msgid "Dumping a buffer to stderr...\n"
msgstr ""
diff --git a/winio.c b/winio.c
@@ -1193,7 +1193,8 @@ int do_help(void)
for (i = 1; i < page; i++) {
row = 0;
j = 0;
- while (row < editwinrows && *ptr != '\0') {
+
+ while (row < editwinrows - 2 && *ptr != '\0') {
if (*ptr == '\n' || j == COLS - 5) {
j = 0;
row++;
@@ -1203,6 +1204,10 @@ int do_help(void)
}
}
+ if (i > 1) {
+
+ }
+
i = 0;
j = 0;
while (i < editwinrows && *ptr != '\0') {
@@ -1231,7 +1236,6 @@ int do_help(void)
continue;
}
} while ((kbinput = wgetch(edit)) != NANO_EXIT_KEY);
-
if (no_help_flag) {
werase(bottomwin);
wrefresh(bottomwin);