Skip to content

Commit

Permalink
fix: escape ANSI escape codes when rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
sminez committed Nov 15, 2024
1 parent 22f8401 commit ecb470d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/ui/tui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,7 @@ fn styled_rline_unchecked(

let dot_range = b.dot.line_range(y, b).map(map_line_range);
let (rline, dot_range) = raw_rline_unchecked(b, view, y, lpad, screen_cols, dot_range);
let rline = rline.replace("\x1b", "�");

let raw_tks = match &b.tokenizer {
Some(t) => t.tokenize(&rline),
Expand Down

0 comments on commit ecb470d

Please sign in to comment.