From: Mark Thom Date: Thu, 24 Apr 2025 01:55:50 +0000 (-0700) Subject: restore tab completion to REPL (#2575) X-Git-Tag: v0.10.0~35^2~27 X-Git-Url: https://git.sagredo.dev/?a=commitdiff_plain;h=258244caf2eb61dd09b40b558609a093d0b78b33;p=scryer-prolog.git restore tab completion to REPL (#2575) --- 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::>();