Skip to content

Commit

Permalink
Fix wrong unit when split string (#839)
Browse files Browse the repository at this point in the history
  • Loading branch information
petricavalry authored Nov 7, 2024
1 parent 9cb1128 commit 7a1b344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/menu/columnar_menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ impl ColumnarMenu {
use_ansi_coloring: bool,
) -> String {
if use_ansi_coloring {
let match_len = self.working_details.shortest_base_string.width();
let match_len = self.working_details.shortest_base_string.len();

// Split string so the match text can be styled
let (match_str, remaining_str) = suggestion.value.split_at(match_len);
Expand Down

0 comments on commit 7a1b344

Please sign in to comment.