review fix for ==

This commit is contained in:
Stanislav Seletskiy 2015-07-22 11:59:55 +06:00
parent c3add0bef4
commit 5638cdf4a2

View File

@ -178,7 +178,7 @@ class EditableTextObject(TextObject):
for children in self._editable_children:
if children._start <= pos < children._end:
return children.find_parent_for_new_to(pos)
if children._start == pos == children._end:
if children._start == pos and pos == children._end:
return children.find_parent_for_new_to(pos)
return self