diff --git a/src/tab.rs b/src/tab.rs index e599d4f..3617d94 100644 --- a/src/tab.rs +++ b/src/tab.rs @@ -266,6 +266,8 @@ fn tab_complete(path: &Path) -> Result, Box> { } completions.sort_by(|a, b| LANGUAGE_SORTER.compare(&a.0, &b.0)); + //TODO: make the list scrollable? + completions.truncate(8); Ok(completions) }