mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
render: urls: blank out keys already pressed
This commit is contained in:
parent
85f7503aec
commit
5af481cd89
1 changed files with 3 additions and 6 deletions
9
render.c
9
render.c
|
|
@ -2595,6 +2595,9 @@ render_urls(struct terminal *term)
|
|||
for (size_t i = 0; i < wcslen(key); i++)
|
||||
label[i] = towupper(label[i]);
|
||||
|
||||
for (size_t i = 0; i < entered_key_len; i++)
|
||||
label[i] = L' ';
|
||||
|
||||
size_t len = wcslen(label);
|
||||
int cols = wcswidth(label, len);
|
||||
|
||||
|
|
@ -2636,12 +2639,6 @@ render_urls(struct terminal *term)
|
|||
|
||||
render_osd(term, surf, sub_surf, buf, label,
|
||||
fg, bg, width, height, x_margin, y_margin);
|
||||
|
||||
#if 1
|
||||
/* TODO: somehow highlight the key(s) entered so far */
|
||||
pixman_color_t color = color_hex_to_pixman(fg);
|
||||
draw_strikeout(term, buf->pix[0], term->fonts[0], &color, x_margin, y_margin, entered_key_len);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue