Commit 621d80d
committed
Fix empty inline edit textarea expanding to full height
When the textarea content was empty, trimEndOfBufferLines stripped all
lines (including the cursor line) since they all appear as whitespace
after ANSI stripping. The fallback returned the full untrimmed view,
causing the edit box to fill the entire panel.
Fix by stopping the trim loop at 1 instead of 0, so the cursor line is
always preserved.
Assisted-By: cagent1 parent a4e7fa1 commit 621d80d
1 file changed
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
983 | 983 | | |
984 | 984 | | |
985 | 985 | | |
| 986 | + | |
| 987 | + | |
986 | 988 | | |
987 | | - | |
| 989 | + | |
988 | 990 | | |
989 | 991 | | |
990 | 992 | | |
991 | | - | |
992 | | - | |
993 | | - | |
994 | | - | |
995 | 993 | | |
996 | 994 | | |
997 | 995 | | |
| |||
0 commit comments