mirror of
https://github.com/charmbracelet/crush.git
synced 2025-08-02 05:20:46 +03:00
chore(diffview): TrimSuffix -> TrimRight
Co-authored-by: Ayman Bagabas <ayman.bagabas@gmail.com>
This commit is contained in:
@@ -22,7 +22,7 @@ type chromaFormatter struct {
|
||||
// Format implements the chroma.Formatter interface.
|
||||
func (c chromaFormatter) Format(w io.Writer, style *chroma.Style, it chroma.Iterator) error {
|
||||
for token := it(); token != chroma.EOF; token = it() {
|
||||
value := strings.TrimSuffix(token.Value, "\n")
|
||||
value := strings.TrimRight(token.Value, "\n")
|
||||
value = ansiext.Escape(value)
|
||||
|
||||
entry := style.Get(token.Type)
|
||||
|
||||
Reference in New Issue
Block a user