nano

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

commit 260f00c76d198c0ff491e4e0bda606c1aa9d4f41
parent 0c8a3b5c3ee9a99f2b3665f84be992961c702d16
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sat,  9 Mar 2024 08:45:48 +0100

screen: recalculate the multidata when detecting the need for it

This fixes https://savannah.gnu.org/bugs/?65435.
The issue was reported by `correctmost`.

Problem existed since version 6.3, commit 80c2000f.

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

diff --git a/src/winio.c b/src/winio.c @@ -3396,6 +3396,9 @@ void edit_refresh(void) if (openfile->syntax && !have_palette && !ISSET(NO_SYNTAX) && has_colors()) prepare_palette(); + /* When the line above the viewport does not have multidata, recalculate all. */ + recook |= ISSET(SOFTWRAP) && openfile->edittop->prev && !openfile->edittop->prev->multidata; + if (recook) { precalc_multicolorinfo(); perturbed = FALSE;