summaryrefslogtreecommitdiffstats
path: root/src/paint.rs
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-06-26 12:56:36 -0400
committerDan Davison <dandavison7@gmail.com>2020-06-26 13:50:49 -0400
commit8c1ed7b2dad3b83196ab9272174d6452b6fc75f2 (patch)
treeece9210fba34b8423ea00001c2d202d5ea8bec2a /src/paint.rs
parenta5705f305d3d26e0d522e9bd8580f7c395ba5ebd (diff)
Bugfix: fix highlighting bug (no test coverage)
Diffstat (limited to 'src/paint.rs')
-rw-r--r--src/paint.rs6
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;
}