Skip to content
Snippets Groups Projects
Unverified Commit bd9c46ee authored by Junegunn Choi's avatar Junegunn Choi
Browse files

Update ANSI processor to strip ^H along with its preceding character

parent 736aeaa1
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ func init() {
*/
// The following regular expression will include not all but most of the
// frequently used ANSI sequences
ansiRegex = regexp.MustCompile("\x1b[\\[()][0-9;]*[a-zA-Z@]|\x1b.|[\x08\x0e\x0f]")
ansiRegex = regexp.MustCompile("\x1b[\\[()][0-9;]*[a-zA-Z@]|\x1b.|[\x0e\x0f]|.\x08")
}
func extractColor(str string, state *ansiState, proc func(string, *ansiState) bool) (string, *[]ansiOffset, *ansiState) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment