Skip to content

Commit 0b17953

Browse files
author
a
committed
0.3.1
1 parent c4bc889 commit 0b17953

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
setup(
1111
name='xontrib-argcomplete',
12-
version='0.3.0',
12+
version='0.3.1',
1313
license='BSD',
1414
author='anki-code',
1515
author_email='[email protected]',

xontrib/argcomplete.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ def _xontrib_argcomplete_completer(prefix, line, begidx, endidx, ctx):
3333

3434
py = _get_executor(args[0])
3535
if py:
36-
file = _get_filepath(args[1])
36+
if len(args) > 1:
37+
file = _get_filepath(args[1])
38+
else:
39+
return None if not debug else ((prefix, 'xontrib-argcomplete DEBUG: file not found'), len(prefix))
3740
else:
3841
file = _get_filepath(args[0])
3942

0 commit comments

Comments
 (0)