Browse Source

utilities: ensure command suggestions are LIFO

tags/alpha-0.6.2
Manos Pitsidianakis 1 month ago
parent
commit
07742ec053
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS. GPG Key ID: 73627C2F690DF710
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/components/utilities.rs

+ 1
- 0
src/components/utilities.rs View File

@ -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