Browse Source

utilities: ensure command suggestions are LIFO

memfd
Manos Pitsidianakis 1 year ago
parent
commit
07742ec053
Signed by untrusted user: epilys GPG Key ID: 73627C2F690DF710
  1. 1
      src/components/utilities.rs

1
src/components/utilities.rs

@ -799,6 +799,7 @@ impl Component for StatusBar {
let mut suggestions: Vec<AutoCompleteEntry> = self
.cmd_history
.iter()
.rev()
.filter_map(|h| {
let sug = self.ex_buffer.as_str();
if h.starts_with(sug) && !unique_suggestions.contains(sug) {

Loading…
Cancel
Save