nano

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

commit ae648778e2a86a8a7ff93f6c80a6a7cd8c33b647
parent 023edffe3df701427b6d0a6da579a7424e0fac7d
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Fri, 21 Oct 2016 15:59:16 +0200

screen: refresh when a new magicline is added in line-numbering mode

This fixes https://savannah.gnu.org/bugs/?49406.

Diffstat:
Msrc/nano.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/nano.c b/src/nano.c @@ -1892,8 +1892,11 @@ void do_output(char *output, size_t output_len, bool allow_cntrls) continue; /* If we're adding to the magicline, create a new magicline. */ - if (!ISSET(NO_NEWLINES) && openfile->filebot == openfile->current) + if (!ISSET(NO_NEWLINES) && openfile->filebot == openfile->current) { new_magicline(); + if (margin > 0) + refresh_needed = TRUE; + } assert(openfile->current_x <= current_len);