You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like pyreadline doesn't properly handle a parenthesis when using readline.get_begidx() and readline.get_endidx(). This manifests when trying to tab complete an option that contain a parenthesis, ex:
# Create a new macro with a paren
macro test(
Beginning macro, use the 'end'command to save.
>echo hello world
> end
# tab complete showing them
macro --show test(<TAB># all macros will be tab completed
# begidx and endidx are set to the same, # so prefix is set to an empty string and passed to the completerbegidx=readline.get_begidx()
endidx=readline.get_endidx()
line=readline.get_line_buffer()
prefix=line[begidx:endidx] iflineelse''line=line[:endidx]
self.completion_matches=self.get_completions(line, prefix)
The text was updated successfully, but these errors were encountered:
It looks like pyreadline doesn't properly handle a parenthesis when using
readline.get_begidx()
andreadline.get_endidx()
. This manifests when trying to tab complete an option that contain a parenthesis, ex:The problem for us is inside
shell.py:complete()
:The text was updated successfully, but these errors were encountered: