Fix wrong group reference

This commit is contained in:
Morten Enemark Lund 2016-06-16 14:23:52 +02:00
parent 14d818b3c5
commit cec182f8f0

View file

@ -287,6 +287,6 @@ def complete_dir(prefix, line, start, end, ctx, cdpath=False):
dirs = set()
for path in paths:
m = RE_UNQUOTE.match(path)
if m and os.path.isdir(m.group(2)):
if m and os.path.isdir(m.group(3)):
dirs.add(path)
return dirs, lp