Commit 404d79e
fix(tui): correct cursor position in input fields
Fixed cursor position calculation in TUI input components. The cursor
was appearing on top of the last character instead of after it due to
incorrect offset calculation.
Changes:
- app.rs: Fixed cursor position from area.x + 2 to area.x + 3
(accounting for left border + "> " prefix)
- widgets/input.rs: Same fix for CommandInput widget
- components/text_input.rs: Show underline cursor at end of text
Co-Authored-By: Claude Opus 4.6 <noreply@openkeyring.com>1 parent f44b564 commit 404d79e
3 files changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1085 | 1085 | | |
1086 | 1086 | | |
1087 | 1087 | | |
1088 | | - | |
1089 | | - | |
| 1088 | + | |
| 1089 | + | |
1090 | 1090 | | |
1091 | 1091 | | |
1092 | 1092 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| 228 | + | |
228 | 229 | | |
| 230 | + | |
229 | 231 | | |
230 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
231 | 238 | | |
232 | 239 | | |
233 | 240 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
159 | | - | |
| 158 | + | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
0 commit comments