We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c45756 commit c9a2f30Copy full SHA for c9a2f30
src/popups/conventional_commit.rs
@@ -442,6 +442,12 @@ impl ConventionalCommitPopup {
442
})
443
.collect_vec()
444
} else {
445
+ let max_len = self
446
+ .query_results
447
+ .iter()
448
+ .map(|s| s.to_string().len())
449
+ .max();
450
+
451
self.query_results
452
.iter()
453
.enumerate()
@@ -453,14 +459,14 @@ impl ConventionalCommitPopup {
459
commit_type_string.as_str(),
454
460
width - 4, // ` [k]`
455
461
);
456
- //FIXME: not working
462
457
463
(
458
464
self.selected_index == idx,
465
format!(
466
"{:w$} [{}]",
467
text,
468
quick_shortcuts[idx],
- w = width,
469
+ w = max_len.unwrap_or_default(),
470
),
471
)
472
0 commit comments