acme: Kup - next try...

This commit is contained in:
gutmet 2020-08-27 18:21:34 +02:00
parent f8d88a8a66
commit c1b85c58f7

View File

@ -48,7 +48,7 @@ index e5658a4e..2c79b387 100644
r = Rect(0, 0, Scrollwid+ButtonBorder, font->height+1); r = Rect(0, 0, Scrollwid+ButtonBorder, font->height+1);
diff --git a/src/cmd/acme/text.c b/src/cmd/acme/text.c 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 --- a/src/cmd/acme/text.c
+++ b/src/cmd/acme/text.c +++ b/src/cmd/acme/text.c
@@ -694,8 +694,16 @@ texttype(Text *t, Rune r) @@ -694,8 +694,16 @@ texttype(Text *t, Rune r)
@ -80,7 +80,7 @@ index 09422dda..292dcd47 100644
+ nnb = 0; + nnb = 0;
+ if(t->q0 > 0 && textreadc(t, t->q0-1) != '\n') + if(t->q0 > 0 && textreadc(t, t->q0-1) != '\n')
+ nnb = textbswidth(t, 0x15); + 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); + textshow(t, t->q0-nnb-1, t->q0-nnb-1, TRUE);
+ return; + return;
case Kscrolloneup: case Kscrolloneup: