mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-01-22 22:58:26 +00:00
Fix regression in separator display
This commit is contained in:
parent
b02bf9b6bb
commit
a70ea4654e
@ -1846,7 +1846,7 @@ func (t *Terminal) printInfo() {
|
||||
output = fmt.Sprintf("[Command failed: %s]", *t.failed)
|
||||
}
|
||||
var outputPrinter labelPrinter
|
||||
var outputLen int
|
||||
outputLen := len(output)
|
||||
if t.infoCommand != "" {
|
||||
output = t.executeCommand(t.infoCommand, false, true, true, true, output)
|
||||
outputPrinter, outputLen = t.ansiLabelPrinter(output, &tui.ColInfo, false)
|
||||
@ -1896,16 +1896,13 @@ func (t *Terminal) printInfo() {
|
||||
if outputPrinter == nil {
|
||||
t.window.CPrint(tui.ColInfo, output)
|
||||
} else {
|
||||
outputPrinter(t.window, maxWidth)
|
||||
outputPrinter(t.window, maxWidth-1)
|
||||
}
|
||||
t.window.Print(" ") // Margin
|
||||
return
|
||||
}
|
||||
|
||||
if t.infoStyle == infoInlineRight {
|
||||
if outputPrinter == nil {
|
||||
outputLen = util.StringWidth(output)
|
||||
}
|
||||
if len(t.infoPrefix) == 0 {
|
||||
move(line, pos, false)
|
||||
newPos := util.Max(pos, t.window.Width()-outputLen-3)
|
||||
|
Loading…
x
Reference in New Issue
Block a user