nano

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

commit 5f529a48e6bfe679981835290e4f54bc894b3357
parent d9faac618dfcfa3223d565a5ed4d8f30ef8656f8
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri, 15 Mar 2019 14:03:04 +0100

tweaks: don't bother trying to draw characters beyond the screen's edge

Diffstat:
Msrc/winio.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/winio.c b/src/winio.c @@ -2686,7 +2686,8 @@ void edit_draw(filestruct *fileptr, const char *converted, #endif /* ENABLE_COLOR */ #ifndef NANO_TINY - if (stripe_column > from_col && !inhelp) { + if (stripe_column > from_col && !inhelp && + stripe_column <= from_col + editwincols) { ssize_t target_column = stripe_column - from_col - 1; size_t target_x = actual_x(converted, target_column); char striped_char[MAXCHARLEN];