fix dirutil breakage caused by mode.dir

--HG--
branch : pmacs2
This commit is contained in:
Erik Osheim 2009-06-11 01:33:16 -04:00
parent 883b8d51e5
commit cc4108d107
1 changed files with 2 additions and 4 deletions

View File

@ -3,10 +3,8 @@ from point import Point
def resolve_token(w, y=None): def resolve_token(w, y=None):
if y is None: if y is None:
p = Point(0, w.logical_cursor().y) y = w.logical_cursor().y
else: return w.get_next_token_by_type(Point(0, y), 'name')
p = Point(0, y)
return w.get_next_token_by_type(p, 'dir_name')
def resolve_name(w, y=None): def resolve_name(w, y=None):
t = resolve_token(w, y) t = resolve_token(w, y)
assert t is not None assert t is not None