From 2ced26bbe69846695d1e0406e1b4115398928436 Mon Sep 17 00:00:00 2001 From: Mark Thom Date: Wed, 23 Apr 2025 18:55:50 -0700 Subject: [PATCH] restore tab completion to REPL (#2575) --- src/repl_helper.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/repl_helper.rs b/src/repl_helper.rs index 26199c22..afec4fd2 100644 --- a/src/repl_helper.rs +++ b/src/repl_helper.rs @@ -6,7 +6,7 @@ use rustyline::{Context, Helper as RlHelper, Result}; use std::sync::Weak; -use crate::atom_table::{AtomString, AtomTable}; //, STATIC_ATOMS_MAP}; +use crate::atom_table::{AtomString, AtomTable, STATIC_ATOMS_MAP}; // TODO: Maybe add validation to the helper pub struct Helper { @@ -74,7 +74,7 @@ impl Completer for Helper { let mut matching = index_set .iter() - // .chain(STATIC_ATOMS_MAP.values()) + .chain(STATIC_ATOMS_MAP.values()) .map(|a| a.as_str()) .filter(|a| a.starts_with(sub_str)) .collect::>(); -- 2.54.0