1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00

small bugfix

This commit is contained in:
Joël Schaerer 2009-02-19 10:20:46 +01:00
parent 614cf4d0b4
commit 796e2c9048

View File

@ -91,7 +91,7 @@ else:
if not args: pattern=""
else: pattern=args[-1]
if len(pattern)>0 and pattern[0]=="/": #if pattern is a full path, jump there
if len(pattern)>0 and pattern[0]=="/" and os.path.exists(pattern): #if pattern is a full path, jump there
if not completion : print pattern
else:
endmatch=re.search("__([0-9]+)",pattern)