diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-08-09 14:43:24 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-08-09 14:43:24 -0400 |
commit | b5f5ca572466dacfc7fada83d8e2f4e52f13f17e (patch) | |
tree | 5237436667398ad797b5babc37907be675ecee35 /src | |
parent | 37522b4abd2ccdc7d72a1ed3f47344b1939976a0 (diff) |
Expand tabs when emitting as raw line
Fixes #280
Diffstat (limited to 'src')
-rw-r--r-- | src/paint.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/paint.rs b/src/paint.rs index 0fb0b193..687b4f92 100644 --- a/src/paint.rs +++ b/src/paint.rs @@ -104,7 +104,7 @@ impl<'a> Painter<'a> { /// Remove the initial +/- character of a line that will be emitted unchanged, including any /// ANSI escape sequences. pub fn prepare_raw_line(&self, line: &str) -> String { - ansi::ansi_preserving_slice(line, 1) + ansi::ansi_preserving_slice(&self.expand_tabs(line.graphemes(true)), 1) } /// Expand tabs as spaces. |