Limit completions to 8
This commit is contained in:
parent
121e9f5cf4
commit
868aa79127
1 changed files with 2 additions and 0 deletions
|
|
@ -266,6 +266,8 @@ fn tab_complete(path: &Path) -> Result<Vec<(String, PathBuf)>, Box<dyn Error>> {
|
|||
}
|
||||
|
||||
completions.sort_by(|a, b| LANGUAGE_SORTER.compare(&a.0, &b.0));
|
||||
//TODO: make the list scrollable?
|
||||
completions.truncate(8);
|
||||
Ok(completions)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue