(self, text, line, begidx, endidx)
| 1151 | return self._rlcompleter |
| 1152 | |
| 1153 | def completenames(self, text, line, begidx, endidx): |
| 1154 | # Overwrite completenames() of cmd so for the command completion, |
| 1155 | # if no current command matches, check for expressions as well |
| 1156 | commands = super().completenames(text, line, begidx, endidx) |
| 1157 | for alias in self.aliases: |
| 1158 | if alias.startswith(text): |
| 1159 | commands.append(alias) |
| 1160 | if commands: |
| 1161 | return commands |
| 1162 | else: |
| 1163 | expressions = self._complete_expression(text, line, begidx, endidx) |
| 1164 | if expressions: |
| 1165 | return expressions |
| 1166 | return self.completedefault(text, line, begidx, endidx) |
| 1167 | |
| 1168 | def _complete_location(self, text, line, begidx, endidx): |
| 1169 | # Complete a file/module/function location for break/tbreak/clear. |
no test coverage detected