Fix first entry not clickable when input section is hidden

Fix #4325
This commit is contained in:
Junegunn Choi 2025-03-24 22:08:57 +09:00
parent 200745011a
commit 62238620a5
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -5867,7 +5867,7 @@ func (t *Terminal) Loop() error {
if me.Down {
mxCons := util.Constrain(mx-t.promptLen, 0, len(t.input))
if t.inputWindow == nil && my == t.promptLine() && mxCons >= 0 {
if !t.inputless && t.inputWindow == nil && my == t.promptLine() && mxCons >= 0 {
// Prompt
t.cx = mxCons + t.xoffset
} else if my >= min {