use get_cur_language()

This commit is contained in:
greg 2018-09-21 19:32:39 -07:00
parent 92078ef7d8
commit 3c1823510f

View File

@ -291,7 +291,7 @@ impl Repl {
self.line_reader.load_history(".schala_history").unwrap_or(()); self.line_reader.load_history(".schala_history").unwrap_or(());
loop { 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 directives = self.get_directives();
let tab_complete_handler = TabCompleteHandler::new(self.interpreter_directive_sigil, directives); let tab_complete_handler = TabCompleteHandler::new(self.interpreter_directive_sigil, directives);
self.line_reader.set_completer(std::sync::Arc::new(tab_complete_handler)); self.line_reader.set_completer(std::sync::Arc::new(tab_complete_handler));