Commit 23cdc7c
committed
Size PTY against the buffer window, not the selected one
`ghostel--start-process' recomputed the PTY rows/cols from
`(window-body-height)' / `(window-max-chars-per-line)' with no
window argument, i.e. against the *selected* window.
`ghostel--init-buffer' had just sized the libghostty terminal
against the *buffer's* window. When the two are different
(popup display rules that don't select the popup, side windows,
etc.) the PTY and the libghostty terminal start out disagreeing,
and no SIGWINCH ever fires to reconcile them — alt-screen apps
like Claude Code's /tui fullscreen lay out against the wrong
size and the bottom rows look "visually collapsed" until the
user resizes the frame (#192).
Read the dims from `ghostel--term-rows' / `ghostel--term-cols'
that `ghostel--init-buffer' (the only caller) just set, so the
PTY and the libghostty terminal are guaranteed to match by
construction.1 parent 5321d1b commit 23cdc7c
2 files changed
Lines changed: 13 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2960 | 2960 | | |
2961 | 2961 | | |
2962 | 2962 | | |
2963 | | - | |
2964 | | - | |
| 2963 | + | |
| 2964 | + | |
| 2965 | + | |
| 2966 | + | |
| 2967 | + | |
| 2968 | + | |
| 2969 | + | |
| 2970 | + | |
2965 | 2971 | | |
2966 | 2972 | | |
2967 | 2973 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6942 | 6942 | | |
6943 | 6943 | | |
6944 | 6944 | | |
6945 | | - | |
6946 | | - | |
6947 | | - | |
6948 | | - | |
6949 | | - | |
| 6945 | + | |
6950 | 6946 | | |
6951 | 6947 | | |
6952 | 6948 | | |
6953 | 6949 | | |
| 6950 | + | |
| 6951 | + | |
| 6952 | + | |
| 6953 | + | |
6954 | 6954 | | |
6955 | 6955 | | |
6956 | 6956 | | |
| |||
0 commit comments