Fix composer input cursor so trailing spaces are visible. wrap_input now wraps by character, preserving trailing spaces. The hardware cursor is placed after the real last character and Modifier::REVERSED is applied to the cursor cell, matching grok-build's textarea cursor approach.
Fix composer input cursor so trailing spaces are visible.
Deploy story
What this commit did to the running system — joined from the forge receipt chain, the part a commit page elsewhere cannot show.
Not deployed through the forge lane
No push, promotion, build, or deploy receipt references this commit (receipts are scanned over a bounded recent window). Changes shipped by full node replacement carry their proof in the release gate receipt instead.
Changed files
-
modified
crates/coder-lite/src/tui.rs
Diff
1 file changed, +23 -19
crates/coder-lite/src/tui.rs modified +23 -19
@@ -3,10 +3,11 @@
| 3 | 3 |
|
| 4 | 4 |
|
| 5 | 5 |
|
| 6 |
|
|
| 6 |
|
|
| 7 | 7 |
|
| 8 | 8 |
|
| 9 | 9 |
|
| 10 |
|
|
| 10 | 11 |
|
| 11 | 12 |
|
| 12 | 13 |
|
@@ -194,30 +195,25 @@ fn wrap_input(text: &str, width: usize) -> Vec<String> {
| 194 | 195 |
|
| 195 | 196 |
|
| 196 | 197 |
|
| 197 |
|
|
| 198 |
|
|
| 199 |
|
|
| 200 |
|
|
| 201 |
|
|
| 202 | 198 |
|
| 203 | 199 |
|
| 204 |
|
|
| 205 |
|
|
| 206 |
|
|
| 207 |
|
|
| 208 |
|
|
| 209 |
|
|
| 210 |
|
|
| 211 |
|
|
| 212 |
|
|
| 200 |
|
|
| 201 |
|
|
| 202 |
|
|
| 203 |
|
|
| 204 |
|
|
| 213 | 205 |
|
| 214 | 206 |
|
| 215 |
|
|
| 216 |
|
|
| 207 |
|
|
| 208 |
|
|
| 217 | 209 |
|
| 218 | 210 |
|
| 219 | 211 |
|
| 220 |
|
|
| 212 |
|
|
| 213 |
|
|
| 214 |
|
|
| 215 |
|
|
| 216 |
|
|
| 221 | 217 |
|
| 222 | 218 |
|
| 223 | 219 |
|
@@ -328,9 +324,17 @@ impl CoderUi {
| 328 | 324 |
|
| 329 | 325 |
|
| 330 | 326 |
|
| 331 |
|
|
| 327 |
|
|
| 328 |
|
|
| 329 |
|
|
| 330 |
|
|
| 331 |
|
|
| 332 | 332 |
|
| 333 | 333 |
|
| 334 |
|
|
| 335 |
|
|
| 336 |
|
|
| 337 |
|
|
| 334 | 338 |
|
| 335 | 339 |
|
| 336 | 340 |
|