diff --git a/yazi-plugin/src/external/highlighter.rs b/yazi-plugin/src/external/highlighter.rs index 0e681b96..11a06b3a 100644 --- a/yazi-plugin/src/external/highlighter.rs +++ b/yazi-plugin/src/external/highlighter.rs @@ -84,6 +84,12 @@ impl Highlighter { buf.push(b'\n'); } + buf.iter_mut().for_each(|b| { + if *b == 27 { + *b = b' ' + } + }); + if i > skip { after.push(String::from_utf8_lossy(&buf).into_owned()); } else if !plain {