Skip to content

Commit

Permalink
fix: wrong unit when split string (nushell#837)
Browse files Browse the repository at this point in the history
  • Loading branch information
petricavalry committed Sep 30, 2024
1 parent 4634f71 commit c127fe5
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 c127fe5

Please sign in to comment.