Fixed quoted paths not being recognized as directories

This commit is contained in:
Morten Enemark Lund 2016-06-15 23:37:53 +02:00
parent ce79bb7ad3
commit e28968e90b

View file

@ -279,4 +279,4 @@ def complete_path(prefix, line, start, end, ctx, cdpath=True):
def complete_dir(prefix, line, start, end, ctx, cdpath=False):
o, lp = complete_path(prefix, line, start, end, cdpath)
return {i for i in o if os.path.isdir(i)}, lp
return {i for i in o if os.path.isdir(i.strip(''''"'''))}, lp