Fix some customize mode drawing nits.

This commit is contained in:
Nicholas Marriott
2020-05-08 22:09:31 +01:00
parent a61cbf1c33
commit 5e97d79eb1
4 changed files with 10 additions and 3 deletions

View File

@ -492,6 +492,9 @@ window_customize_draw(void *modedata, void *itemdata,
else
text = oe->text;
screen_write_text(ctx, sx, sy, &grid_default_cell, "%s", text);
if (s->cy >= cy + sy - 1)
goto out;
screen_write_cursormove(ctx, s->cx, s->cy + 1, 0);
if (s->cy >= cy + sy - 1)
goto out;
@ -524,6 +527,9 @@ window_customize_draw(void *modedata, void *itemdata,
if (s->cy > cy + sy - 1)
goto out;
}
screen_write_cursormove(ctx, s->cx, s->cy + 1, 0);
if (s->cy >= cy + sy - 1)
goto out;
value = options_to_string(o, idx, 0);
if (oe != NULL && idx == -1) {