Skip to content

Commit

Permalink
Fix click-header event
Browse files Browse the repository at this point in the history
  • Loading branch information
junegunn committed Jan 29, 2025
1 parent 961837e commit f9d0859
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/terminal.go
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,7 @@ func (t *Terminal) parsePrompt(prompt string) (func(), int) {
}

func (t *Terminal) noSeparatorLine() bool {
return noSeparatorLine(t.infoStyle, t.separatorLen > 0)
return t.inputless || noSeparatorLine(t.infoStyle, t.separatorLen > 0)
}

func getScrollbar(perLine int, total int, height int, offset int) (int, int) {
Expand Down Expand Up @@ -5695,7 +5695,7 @@ func (t *Terminal) Loop() error {
// Header
numLines := t.visibleHeaderLinesInList()
lineOffset := 0
if t.inputWindow == nil && !t.headerFirst {
if !t.inputless && t.inputWindow == nil && !t.headerFirst {
// offset for info line
if t.noSeparatorLine() {
lineOffset = 1
Expand Down

0 comments on commit f9d0859

Please sign in to comment.