mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-01-15 11:46:58 +00:00
Compare commits
2 Commits
3398ad7f76
...
d7da1e75ba
Author | SHA1 | Date | |
---|---|---|---|
|
d7da1e75ba | ||
|
6f943112a9 |
@ -2391,9 +2391,19 @@ func (t *Terminal) printHeaderImpl() {
|
|||||||
}
|
}
|
||||||
// Wrapping is not supported for header
|
// Wrapping is not supported for header
|
||||||
wrap := t.wrap
|
wrap := t.wrap
|
||||||
|
|
||||||
|
// Align header with the list
|
||||||
|
// fzf --header-lines 3 --style full --no-list-border
|
||||||
|
// fzf --header-lines 3 --style full --no-header-border
|
||||||
|
// fzf --header-lines 3 --style full --no-header-border --no-input-border
|
||||||
indentSize := t.pointerLen + t.markerLen
|
indentSize := t.pointerLen + t.markerLen
|
||||||
if t.headerBorderShape.HasLeft() && !t.listBorderShape.HasLeft() {
|
if t.headerWindow != nil {
|
||||||
indentSize = util.Max(0, indentSize-(1+t.borderWidth))
|
if t.listBorderShape.HasLeft() {
|
||||||
|
indentSize += 1 + t.borderWidth
|
||||||
|
}
|
||||||
|
if t.headerBorderShape.HasLeft() {
|
||||||
|
indentSize -= 1 + t.borderWidth
|
||||||
|
}
|
||||||
}
|
}
|
||||||
indent := strings.Repeat(" ", indentSize)
|
indent := strings.Repeat(" ", indentSize)
|
||||||
t.wrap = false
|
t.wrap = false
|
||||||
|
Loading…
Reference in New Issue
Block a user