Skip to content
Myr

render: regression: restore --password functionality

Before adoption: this commit came in with the history the project adopted, so no landing records it.

This regressed when we implemented input scrolling Closes #653

authored by Daniel Eklöf · committed by Daniel Eklöf · parent b4e9c1c · Browse files · 2 files+14 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+14 added−6 removed

  • other:+14 added−6 removed

2 files+14 added−6 removed

modified:CHANGELOG.md+3 added
36 unmodified lines
37### Removed38### Fixed3940* Fixed input not being returned in dmenu mode ([#647][#647])41* Regression: `--password` not working ([#653][653]).4243[647]: https://codeberg.org/dnkl/fuzzel/issues/64744[653]: https://codeberg.org/dnkl/fuzzel/issues/653454647### Security48### Contributors4950 * Mark Stosberg
1029 unmodified lines
modified:render.c+11 added-6 removed
567 unmodified lines
568569 const struct fcft_glyph *input_glyphs[text_len];570 long input_kerning[text_len];571572 {573 const bool use_password = conf->password_mode.enabled && !use_placeholder;574575 for (size_t i = 0; i < text_len; i++) {572 for (size_t i = 0; i < text_len; i++) {573 input_glyphs[i] = fcft_rasterize_char_utf32(font, ptext[i], subpixel);574 if (i == 0)575 input_kerning[0] = 0;576 else577 fcft_kerning(font, ptext[i - 1], ptext[i], &input_kerning[i], NULL);576 char32_t wc = use_password ? conf->password_mode.character : ptext[i];577 input_glyphs[i] = fcft_rasterize_char_utf32(font, wc, subpixel);578 if (i == 0 || use_password)579 input_kerning[i] = 0;580 else581 fcft_kerning(font, ptext[i - 1], ptext[i], &input_kerning[i], NULL);582 }583 }584585 if (use_placeholder) {586 ptext = prompt_placeholder(prompt);
1309 unmodified lines