Skip to content

Commit

Permalink
restore completion for subcommands
Browse files Browse the repository at this point in the history
  • Loading branch information
hugsy authored Jun 2, 2024
1 parent f0b6d1d commit 85008e2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gef.py
Original file line number Diff line number Diff line change
Expand Up @@ -4646,10 +4646,11 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
self.repeat = False
self.repeat_count = 0
self.__last_command = None
command_type = kwargs.setdefault("command", gdb.COMMAND_OBSCURE)
complete_type = kwargs.setdefault("complete", gdb.COMPLETE_NONE)
command_type = kwargs.setdefault("command", gdb.COMMAND_USER)
complete_type = kwargs.setdefault("complete", -1) # -1=allow user-defined `complete()`
prefix = kwargs.setdefault("prefix", False)
super().__init__(self._cmdline_, command_type, complete_type, prefix)
super().__init__(name=self._cmdline_, command_class=command_type,
completer_class=complete_type, prefix=prefix)
self.post_load()
return

Expand Down

0 comments on commit 85008e2

Please sign in to comment.