Skip to content
Myr

Fix regression in separator display

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent b02bf9b · Browse files · 1 file+2 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−5 removed

  • other:+2 added−5 removed

1 file+2 added−5 removed

modified:src/terminal.go+2 added-5 removed
1844 unmodified lines
1845 if t.failed != nil && t.count == 0 {1846 output = fmt.Sprintf("[Command failed: %s]", *t.failed)1847 }1848 var outputPrinter labelPrinter1849 var outputLen int1849 outputLen := len(output)1850 if t.infoCommand != "" {1851 output = t.executeCommand(t.infoCommand, false, true, true, true, output)1852 outputPrinter, outputLen = t.ansiLabelPrinter(output, &tui.ColInfo, false)1853 }
41 unmodified lines
1895 }1896 if outputPrinter == nil {1897 t.window.CPrint(tui.ColInfo, output)1898 } else {1899 outputPrinter(t.window, maxWidth)1899 outputPrinter(t.window, maxWidth-1)1900 }1901 t.window.Print(" ") // Margin1902 return1903 }19041905 if t.infoStyle == infoInlineRight {1906 if outputPrinter == nil {1907 outputLen = util.StringWidth(output)1908 }1906 if len(t.infoPrefix) == 0 {1907 move(line, pos, false)1908 newPos := util.Max(pos, t.window.Width()-outputLen-3)1909 t.window.Print(strings.Repeat(" ", newPos-pos))
3028 unmodified lines