From 34fc2b1dce788fbb093e70c2124630167e7980ef Mon Sep 17 00:00:00 2001 From: Anders Betts Date: Sat, 19 Sep 2026 21:30:13 +0200 Subject: bokftui: clear the whole prompt line before drawing the label --- clients/bokftui.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'clients') diff --git a/clients/bokftui.c b/clients/bokftui.c index ade7948..9ee5859 100644 --- a/clients/bokftui.c +++ b/clients/bokftui.c @@ -371,6 +371,8 @@ static char *date_prompt(const char *label, const char *def) static char buf[16]; snprintf(buf, sizeof buf, "%s", def ? def : ""); int y = LINES - 3; + move(y, 2); + clrtoeol(); attron(A_BOLD); mvaddstr(y, 2, label); attroff(A_BOLD); @@ -533,11 +535,11 @@ static char *prompt(const char *label, const char *def, int mask) static char buf[512]; snprintf(buf, sizeof buf, "%s", def ? def : ""); int y = LINES - 3; + move(y, 2); + clrtoeol(); attron(A_BOLD); mvaddstr(y, 2, label); attroff(A_BOLD); - move(y, (int)strlen(label) + 3); - clrtoeol(); refresh(); int prev = curs_set(1); int rc = edit_field(y, (int)strlen(label) + 3, buf, sizeof buf, mask); -- cgit v1.3