aboutsummaryrefslogtreecommitdiffstats
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/atuin/src/command/client/search/history_list.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/atuin/src/command/client/search/history_list.rs b/crates/atuin/src/command/client/search/history_list.rs
index 899308db..47a7d9dc 100644
--- a/crates/atuin/src/command/client/search/history_list.rs
+++ b/crates/atuin/src/command/client/search/history_list.rs
@@ -273,8 +273,9 @@ impl DrawState<'_> {
}
style.attributes.set(style::Attribute::Bold);
}
- self.draw(&ch.to_string(), style.into());
- pos += 1;
+ let s = ch.to_string();
+ self.draw(&s, style.into());
+ pos += s.len();
}
pos += 1;
}