From c1b85c58f7cb963e3e12390a98646c4fe82ef877 Mon Sep 17 00:00:00 2001 From: gutmet Date: Thu, 27 Aug 2020 18:21:34 +0200 Subject: [PATCH] acme: Kup - next try... --- acme.diff | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acme.diff b/acme.diff index 2460289..329efbb 100644 --- a/acme.diff +++ b/acme.diff @@ -48,7 +48,7 @@ index e5658a4e..2c79b387 100644 r = Rect(0, 0, Scrollwid+ButtonBorder, font->height+1); diff --git a/src/cmd/acme/text.c b/src/cmd/acme/text.c -index 09422dda..292dcd47 100644 +index 09422dda..14372418 100644 --- a/src/cmd/acme/text.c +++ b/src/cmd/acme/text.c @@ -694,8 +694,16 @@ texttype(Text *t, Rune r) @@ -80,7 +80,7 @@ index 09422dda..292dcd47 100644 + nnb = 0; + if(t->q0 > 0 && textreadc(t, t->q0-1) != '\n') + nnb = textbswidth(t, 0x15); -+ if(t->q0-nnb > 1) ++ if(t->q0-nnb > 0) + textshow(t, t->q0-nnb-1, t->q0-nnb-1, TRUE); + return; case Kscrolloneup: