mirror of git://git.sv.gnu.org/nano.git
cosmetic fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3475 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
6e7d24dcdc
commit
f629aad27b
|
@ -39,7 +39,7 @@ void do_help(void (*refresh_func)(void))
|
||||||
size_t line = 0;
|
size_t line = 0;
|
||||||
/* The line number in help_text of the first displayed help
|
/* The line number in help_text of the first displayed help
|
||||||
* line. This variable is zero-based. */
|
* line. This variable is zero-based. */
|
||||||
size_t last_line;
|
size_t last_line = 0;
|
||||||
/* The line number in help_text of the last help line. This
|
/* The line number in help_text of the last help line. This
|
||||||
* variable is zero-based. */
|
* variable is zero-based. */
|
||||||
int kbinput = ERR;
|
int kbinput = ERR;
|
||||||
|
@ -80,11 +80,13 @@ void do_help(void (*refresh_func)(void))
|
||||||
/* Get the last line of the help text. */
|
/* Get the last line of the help text. */
|
||||||
ptr = help_text;
|
ptr = help_text;
|
||||||
|
|
||||||
for (last_line = (size_t)-1; *ptr != '\0'; last_line++) {
|
for (; *ptr != '\0'; last_line++) {
|
||||||
ptr += help_line_len(ptr);
|
ptr += help_line_len(ptr);
|
||||||
if (*ptr == '\n')
|
if (*ptr == '\n')
|
||||||
ptr++;
|
ptr++;
|
||||||
}
|
}
|
||||||
|
if (last_line > 0)
|
||||||
|
last_line--;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
size_t i;
|
size_t i;
|
||||||
|
|
Loading…
Reference in New Issue