use get_cur_language()

This commit is contained in:
greg 2018-09-21 19:32:39 -07:00
parent 92078ef7d8
commit 3c1823510f
1 changed files with 1 additions and 1 deletions

View File

@ -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));