fix: make header align with list (#4158)

This commit is contained in:
phanium 2025-01-05 00:13:23 +08:00 committed by GitHub
parent 8e4d338de9
commit 93415493b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2299,7 +2299,7 @@ func (t *Terminal) printHeader() {
t.printHighlighted(Result{item: item},
tui.ColHeader, tui.ColHeader, false, false, line, line, true,
func(markerClass) { t.window.Print(" ") }, nil)
func(markerClass) { t.window.Print(strings.Repeat(" ", t.pointerLen+t.markerLen)) }, nil)
}
t.wrap = wrap
}