mirror of
https://github.com/junegunn/fzf.git
synced 2024-09-11 14:35:26 +03: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…
Reference in New Issue
Block a user