diff --git a/Rex.py b/Rex.py index d9ce1ea..6cab01b 100644 --- a/Rex.py +++ b/Rex.py @@ -154,14 +154,14 @@ class Rex(): with patch_stdout(): try: inp = await self.session.prompt_async(self.prompt, - completer = _CompletionLookup(), + completer = _CompletionLookup(self.cmds), auto_suggest = AutoSuggestFromHistory(), bottom_toolbar = [None,self._bottom_toolbar][self.hasToolbar]) except KeyboardInterrupt: return False try: words = inp.split(" ") - pos = cmds + pos = self.cmds index = 0 for i,word in enumerate(words): if not str(type(pos))=="" and word in pos: