Skip to content
Myr

Revert "Short-circuit ANSI processing if no ANSI codes are found"

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

This reverts commit 656963e01805efccc788e7e2d83a4bcfaa01ee7b.

authored by Junegunn Choi · committed by Junegunn Choi · parent 656963e · Browse files · 1 file+1 added−4 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+1 added−4 removed

  • other:+1 added−4 removed

1 file+1 added−4 removed

modified:src/ansi.go+1 added-4 removed
72 unmodified lines
73 runeCount := 074 for idx := 0; idx < len(str); {75 idx += findAnsiStart(str[idx:])7677 // No sign of ANSI code78 if idx == len(str) {78 // No sign of ANSI code79 if len(offsets) == 0 {80 return str, nil, state81 }79 break80 }8182 // Make sure that we found an ANSI code
150 unmodified lines