1
1

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

Этот коммит содержится в:
Benno Schulenberg 2019-03-15 14:03:04 +01:00
родитель d9faac618d
Коммит 5f529a48e6

Просмотреть файл

@ -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];