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
master
Chris Allegretta 2000-09-07 03:37:38 +00:00
parent 9239d742d6
commit 44e73dfc96
2 changed files with 10 additions and 6 deletions

View File

@ -6,7 +6,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "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" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -832,14 +832,14 @@ msgstr ""
msgid "line %d of %d (%.0f%%), character %d of %d (%.0f%%)" msgid "line %d of %d (%.0f%%), character %d of %d (%.0f%%)"
msgstr "" msgstr ""
#: winio.c:1262 #: winio.c:1266
msgid "Dumping file buffer to stderr...\n" msgid "Dumping file buffer to stderr...\n"
msgstr "" msgstr ""
#: winio.c:1264 #: winio.c:1268
msgid "Dumping cutbuffer to stderr...\n" msgid "Dumping cutbuffer to stderr...\n"
msgstr "" msgstr ""
#: winio.c:1266 #: winio.c:1270
msgid "Dumping a buffer to stderr...\n" msgid "Dumping a buffer to stderr...\n"
msgstr "" msgstr ""

View File

@ -1193,7 +1193,8 @@ int do_help(void)
for (i = 1; i < page; i++) { for (i = 1; i < page; i++) {
row = 0; row = 0;
j = 0; j = 0;
while (row < editwinrows && *ptr != '\0') {
while (row < editwinrows - 2 && *ptr != '\0') {
if (*ptr == '\n' || j == COLS - 5) { if (*ptr == '\n' || j == COLS - 5) {
j = 0; j = 0;
row++; row++;
@ -1203,6 +1204,10 @@ int do_help(void)
} }
} }
if (i > 1) {
}
i = 0; i = 0;
j = 0; j = 0;
while (i < editwinrows && *ptr != '\0') { while (i < editwinrows && *ptr != '\0') {
@ -1231,7 +1236,6 @@ int do_help(void)
continue; continue;
} }
} while ((kbinput = wgetch(edit)) != NANO_EXIT_KEY); } while ((kbinput = wgetch(edit)) != NANO_EXIT_KEY);
if (no_help_flag) { if (no_help_flag) {
werase(bottomwin); werase(bottomwin);
wrefresh(bottomwin); wrefresh(bottomwin);