diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-06-26 12:56:36 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-06-26 13:50:49 -0400 |
commit | 8c1ed7b2dad3b83196ab9272174d6452b6fc75f2 (patch) | |
tree | ece9210fba34b8423ea00001c2d202d5ea8bec2a /src/paint.rs | |
parent | a5705f305d3d26e0d522e9bd8580f7c395ba5ebd (diff) |
Bugfix: fix highlighting bug (no test coverage)
Diffstat (limited to 'src/paint.rs')
-rw-r--r-- | src/paint.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/paint.rs b/src/paint.rs index fa2eea87..c5451ead 100644 --- a/src/paint.rs +++ b/src/paint.rs @@ -182,9 +182,9 @@ impl<'a> Painter<'a> { if !handled_prefix { if prefix != "" { ansi_strings.push(section_style.paint(prefix)); - if text.len() > 0 { - text.remove(0); - } + } + if text.len() > 0 { + text.remove(0); } handled_prefix = true; } |