utilities: ensure command suggestions are LIFO
parent
f83df69d2f
commit
07742ec053
|
@ -799,6 +799,7 @@ impl Component for StatusBar {
|
||||||
let mut suggestions: Vec<AutoCompleteEntry> = self
|
let mut suggestions: Vec<AutoCompleteEntry> = self
|
||||||
.cmd_history
|
.cmd_history
|
||||||
.iter()
|
.iter()
|
||||||
|
.rev()
|
||||||
.filter_map(|h| {
|
.filter_map(|h| {
|
||||||
let sug = self.ex_buffer.as_str();
|
let sug = self.ex_buffer.as_str();
|
||||||
if h.starts_with(sug) && !unique_suggestions.contains(sug) {
|
if h.starts_with(sug) && !unique_suggestions.contains(sug) {
|
||||||
|
|
Loading…
Reference in New Issue