From 3c1823510f37518df7827f64b79f118eaee04fef Mon Sep 17 00:00:00 2001 From: greg Date: Fri, 21 Sep 2018 19:32:39 -0700 Subject: [PATCH] use get_cur_language() --- schala-repl/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schala-repl/src/lib.rs b/schala-repl/src/lib.rs index 5edd529..e23db8a 100644 --- a/schala-repl/src/lib.rs +++ b/schala-repl/src/lib.rs @@ -291,7 +291,7 @@ impl Repl { self.line_reader.load_history(".schala_history").unwrap_or(()); loop { - let language_name = self.languages[self.current_language_index].get_language_name(); + let language_name = self.get_cur_language().get_language_name(); let directives = self.get_directives(); let tab_complete_handler = TabCompleteHandler::new(self.interpreter_directive_sigil, directives); self.line_reader.set_completer(std::sync::Arc::new(tab_complete_handler));