summaryrefslogtreecommitdiffstats
path: root/src/paint.rs
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-08-03 09:46:56 -0400
committerDan Davison <dandavison7@gmail.com>2020-08-14 10:14:54 -0400
commit0a9c48c75051fb507ec1a801ca9d0cf96fadbc48 (patch)
treee1e0b136b7254b962d62f19dc9e87658f82400dc /src/paint.rs
parent5ff4e13f10b80574f15db6968086f1c45fd1860a (diff)
New ANSI escape sequence parser based on vte
Reimplement utility functions from `console` crate, but with support for OSC sequences.
Diffstat (limited to 'src/paint.rs')
-rw-r--r--src/paint.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/paint.rs b/src/paint.rs
index 687b4f92..d31868c0 100644
--- a/src/paint.rs
+++ b/src/paint.rs
@@ -306,7 +306,7 @@ impl<'a> Painter<'a> {
State::HunkMinus(None) => (config.minus_style, config.minus_non_emph_style),
State::HunkMinus(Some(raw_line)) => {
// TODO: This is the second time we are parsing the ANSI sequences
- if let Some(ansi_term_style) = ansi::parse::parse_first_style(raw_line) {
+ if let Some(ansi_term_style) = ansi::parse_first_style(raw_line) {
let style = Style {
ansi_term_style,
..Style::new()
@@ -320,7 +320,7 @@ impl<'a> Painter<'a> {
State::HunkPlus(None) => (config.plus_style, config.plus_non_emph_style),
State::HunkPlus(Some(raw_line)) => {
// TODO: This is the second time we are parsing the ANSI sequences
- if let Some(ansi_term_style) = ansi::parse::parse_first_style(raw_line) {
+ if let Some(ansi_term_style) = ansi::parse_first_style(raw_line) {
let style = Style {
ansi_term_style,
..Style::new()