commit 999de2df33305dd15e04a4e9f3feb713a6715348
parent 4ecfe07a031997f46bbf7fdd59681a185af831a4
Author: Pavel Renev <an2qzavok@gmail.com>
Date: Sun, 13 Mar 2022 17:09:21 +0000
fix missing newlines
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/richterm.c b/richterm.c
@@ -164,7 +164,7 @@ threadmain(int argc, char **argv)
char initmenu[] = "test\n";
arraygrow(menubuf, sizeof(initmenu), initmenu);
- void *ov, *ov2;
+ void *ov;
enum {MOUSE, RESIZE, REDRAW, INSERT, KBD, AEND};
Alt alts[AEND + 1] = {
@@ -189,7 +189,7 @@ threadmain(int argc, char **argv)
break;
case REDRAW:
- while (nbrecv(redrawc, &ov2) != 0) ov = ov2;
+ while (nbrecv(redrawc, &ov) != 0);
lockdisplay(display);
draw(screen, screen->r, Inormbg, nil, ZP);
@@ -915,6 +915,9 @@ drawtext(Elem *e)
Point
drawnl(Elem *e)
{
+ if (e->nlpos.y <= e->pos.y) {
+ e->nlpos.y = e->pos.y + e->font->height;
+ }
/*
* if (selected) Ibg = Isel;
* else Ibg = Inormbg;