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):
|
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
|
||||||
|
|
Loading…
Reference in New Issue