reader handle_completions(): remove stale comment

See 656b39a0b3 (Also show case-insensitive prefix matches in completion pager, 2025-11-23).
This commit is contained in:
Johannes Altmanninger
2026-01-03 14:43:25 +01:00
parent 8f4c80699f
commit 972355e2fc

View File

@@ -6700,11 +6700,6 @@ fn handle_completions(&mut self, token_range: Range<usize>, mut comp: Vec<Comple
if comp.len() == 1 {
// After sorting and stuff only one completion is left, use it.
//
// TODO: This happens when smartcase kicks in, e.g.
// the token is "cma" and the options are "cmake/" and "CMakeLists.txt"
// it would be nice if we could figure
// out how to use it more.
let c = std::mem::take(&mut comp[0]);
self.try_insert(c, &tok, token_range);