nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit f35c3dbd573dfb31922e5b81e370179d056bcf6b
parent acb394aec0c165f827381165f9e541bf77501a54
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Thu,  5 Jan 2017 21:40:23 -0600

softwrap: ensure the current line is fully visible after inserting a file

This fixes https://savannah.gnu.org/bugs/?49994.
Reported-by: David Lawrence Ramsey <pooka109@gmail.com>

Diffstat:
Msrc/files.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/files.c b/src/files.c @@ -1282,6 +1282,10 @@ void do_insertfile(void) * of lines inserted. */ reset_cursor(); +#ifndef NANO_TINY + if (ISSET(SOFTWRAP)) + ensure_line_is_visible(); +#endif refresh_needed = TRUE; }