Commit e9507b5
committed
fix(tui): placeholder clears immediately on first keystroke
Move placeholder ('Type a message...') from InputBox Widget to
render_input_with_prompt() in app.rs. Placeholder renders as a
background layer; any character in InputBox overwrites it. This
fixes the issue where IME pre-edit characters appeared alongside
the placeholder text.1 parent 92310ae commit e9507b5
2 files changed
Lines changed: 16 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1053 | 1053 | | |
1054 | 1054 | | |
1055 | 1055 | | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
1056 | 1066 | | |
1057 | 1067 | | |
1058 | 1068 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
319 | 318 | | |
320 | 319 | | |
321 | 320 | | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
| 321 | + | |
330 | 322 | | |
331 | 323 | | |
332 | 324 | | |
| |||
538 | 530 | | |
539 | 531 | | |
540 | 532 | | |
541 | | - | |
| 533 | + | |
| 534 | + | |
542 | 535 | | |
543 | 536 | | |
544 | 537 | | |
| |||
547 | 540 | | |
548 | 541 | | |
549 | 542 | | |
550 | | - | |
| 543 | + | |
| 544 | + | |
551 | 545 | | |
552 | 546 | | |
553 | 547 | | |
| |||
0 commit comments