moving: do not put the cursor at end-of-line when in a help text
Keeping the invisible cursor at the left edge avoids any line getting scrolled horizontally. This fixes https://savannah.gnu.org/bugs/?57991. Bug existed since version 2.8.2, since the help texts got generated and displayed in a different way in order to become searchable.master
parent
067ee1a6b1
commit
4dedb1c1b1
|
@ -37,7 +37,7 @@ void to_first_line(void)
|
||||||
void to_last_line(void)
|
void to_last_line(void)
|
||||||
{
|
{
|
||||||
openfile->current = openfile->filebot;
|
openfile->current = openfile->filebot;
|
||||||
openfile->current_x = strlen(openfile->filebot->data);
|
openfile->current_x = (inhelp) ? 0 : strlen(openfile->filebot->data);
|
||||||
openfile->placewewant = xplustabs();
|
openfile->placewewant = xplustabs();
|
||||||
|
|
||||||
/* Set the last line of the screen as the target for the cursor. */
|
/* Set the last line of the screen as the target for the cursor. */
|
||||||
|
|
Loading…
Reference in New Issue