Commit 5fd2fd0
committed
fix(tui): prevent input top-border label from wrapping on narrow terminals
The flushed-right effort label was appended unconditionally; when the rule
was shorter than the label plus its gap, the line overflowed and wrapped,
contradicting the method's stated no-wrap invariant. Fall back to the plain
full-width rule when the label cannot fit, and add a regression test.1 parent a3c88fc commit 5fd2fd0
2 files changed
Lines changed: 28 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2477 | 2477 | | |
2478 | 2478 | | |
2479 | 2479 | | |
2480 | | - | |
| 2480 | + | |
| 2481 | + | |
| 2482 | + | |
| 2483 | + | |
| 2484 | + | |
2481 | 2485 | | |
2482 | 2486 | | |
2483 | 2487 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
681 | 681 | | |
682 | 682 | | |
683 | 683 | | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
684 | 707 | | |
685 | 708 | | |
686 | 709 | | |
| |||
0 commit comments