fix wild bug
replace unhandled ansi codes
clear <cr>s after inserting all spans
re-add slicing