fix dirutil breakage caused by mode.dir
--HG-- branch : pmacs2
This commit is contained in:
parent
883b8d51e5
commit
cc4108d107
|
@ -3,10 +3,8 @@ from point import Point
|
|||
|
||||
def resolve_token(w, y=None):
|
||||
if y is None:
|
||||
p = Point(0, w.logical_cursor().y)
|
||||
else:
|
||||
p = Point(0, y)
|
||||
return w.get_next_token_by_type(p, 'dir_name')
|
||||
y = w.logical_cursor().y
|
||||
return w.get_next_token_by_type(Point(0, y), 'name')
|
||||
def resolve_name(w, y=None):
|
||||
t = resolve_token(w, y)
|
||||
assert t is not None
|
||||
|
|
Loading…
Reference in New Issue