Skip to content

Commit c36dba9

Browse files
committed
Update laurier
1 parent fcb683a commit c36dba9

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

Cargo.lock

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ cargo_metadata = "0.23.0"
1818
clap = { version = "4.5.51", features = ["derive"] }
1919
console = "0.16.1"
2020
fuzzy-matcher = "0.3.7"
21-
laurier = "0.1.1"
21+
laurier = "0.2.0"
2222
ratatui = { version = "0.29.0", features = ["serde"] }
2323
serde = { version = "1.0.228", features = ["derive"] }
2424
toml = "0.9.8"

src/tui.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ impl Tui {
253253
truncate_str(&s, features_w, ELLIPSIS).into()
254254
};
255255

256-
let mut name_mt = highlight_matched_text(name.to_string())
256+
let mut name_mt = highlight_matched_text(vec![name.to_string().into()])
257257
.matched_indices(matched_indices.to_vec())
258258
.not_matched_style(Style::default().fg(self.theme.name_fg))
259259
.matched_style(Style::default().fg(self.theme.name_match_fg));

0 commit comments

Comments
 (0)