Skip to content

Commit

Permalink
0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
a committed Oct 14, 2020
1 parent c4bc889 commit 0b17953
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name='xontrib-argcomplete',
version='0.3.0',
version='0.3.1',
license='BSD',
author='anki-code',
author_email='[email protected]',
Expand Down
5 changes: 4 additions & 1 deletion xontrib/argcomplete.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ def _xontrib_argcomplete_completer(prefix, line, begidx, endidx, ctx):

py = _get_executor(args[0])
if py:
file = _get_filepath(args[1])
if len(args) > 1:
file = _get_filepath(args[1])
else:
return None if not debug else ((prefix, 'xontrib-argcomplete DEBUG: file not found'), len(prefix))
else:
file = _get_filepath(args[0])

Expand Down

0 comments on commit 0b17953

Please sign in to comment.