Commit a8bf9ae
committed
Use 80x24 default size when ghostel-exec target buffer is undisplayed
When BUFFER is not displayed in any window, ghostel-exec previously
sized the PTY from (selected-window). That window has nothing to do
with where the agent buffer will eventually be shown — programs ending
up in a different window had to rely on SIGWINCH to recover, and TUIs
that latch initial dimensions at startup rendered against the wrong
size.
Match eat's behavior: if no window is displaying BUFFER, start at the
universal 80x24 default and let SIGWINCH resize on first display. The
displayed-buffer path is unchanged.1 parent abae518 commit a8bf9ae
2 files changed
Lines changed: 38 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3687 | 3687 | | |
3688 | 3688 | | |
3689 | 3689 | | |
3690 | | - | |
3691 | | - | |
3692 | | - | |
3693 | | - | |
3694 | | - | |
3695 | | - | |
| 3690 | + | |
| 3691 | + | |
| 3692 | + | |
| 3693 | + | |
| 3694 | + | |
| 3695 | + | |
3696 | 3696 | | |
3697 | 3697 | | |
3698 | 3698 | | |
3699 | 3699 | | |
3700 | 3700 | | |
3701 | 3701 | | |
3702 | 3702 | | |
3703 | | - | |
| 3703 | + | |
3704 | 3704 | | |
3705 | 3705 | | |
3706 | 3706 | | |
3707 | 3707 | | |
3708 | 3708 | | |
3709 | | - | |
3710 | | - | |
3711 | | - | |
| 3709 | + | |
| 3710 | + | |
| 3711 | + | |
| 3712 | + | |
| 3713 | + | |
| 3714 | + | |
| 3715 | + | |
3712 | 3716 | | |
3713 | 3717 | | |
3714 | 3718 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7831 | 7831 | | |
7832 | 7832 | | |
7833 | 7833 | | |
| 7834 | + | |
| 7835 | + | |
| 7836 | + | |
| 7837 | + | |
| 7838 | + | |
| 7839 | + | |
| 7840 | + | |
| 7841 | + | |
| 7842 | + | |
| 7843 | + | |
| 7844 | + | |
| 7845 | + | |
| 7846 | + | |
| 7847 | + | |
| 7848 | + | |
| 7849 | + | |
| 7850 | + | |
| 7851 | + | |
| 7852 | + | |
| 7853 | + | |
| 7854 | + | |
| 7855 | + | |
| 7856 | + | |
7834 | 7857 | | |
7835 | 7858 | | |
7836 | 7859 | | |
| |||
8092 | 8115 | | |
8093 | 8116 | | |
8094 | 8117 | | |
| 8118 | + | |
8095 | 8119 | | |
8096 | 8120 | | |
8097 | 8121 | | |
| |||
0 commit comments