ref: 9633c9fc65a833747a24cbd51f922afcf2859efd
parent: 15b903c4e187b82d6dd01b8284b244945522c06d
author: james palmer <foura@biobuf.link>
date: Thu May 13 17:29:19 EDT 2021
libpanel: fix text sliding around in libpanel text entry widgets.
--- a/sys/src/cmd/mothra/libpanel/entry.c
+++ b/sys/src/cmd/mothra/libpanel/entry.c
@@ -64,13 +64,10 @@
ep = p->data;
b = p->b;
- if(Dx(r) != Dx(ep->lastr)){
- ep->text = r.min;
- ep->lastr = r;
- }
+ ep->text = r.min;
+ ep->lastr = r;
tick = ep->text;
tick.x += runestringnwidth(font, s, ep->a);
-
if(plkbfocus == p)
r.max.x -= TICKW;
ep->text.y = r.min.y;