From 5638cdf4a2964d0285a876cf1b7da4e3d2cf5643 Mon Sep 17 00:00:00 2001 From: Stanislav Seletskiy Date: Wed, 22 Jul 2015 11:59:55 +0600 Subject: [PATCH] review fix for == --- pythonx/UltiSnips/text_objects/_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonx/UltiSnips/text_objects/_base.py b/pythonx/UltiSnips/text_objects/_base.py index 645602b..6ee1745 100644 --- a/pythonx/UltiSnips/text_objects/_base.py +++ b/pythonx/UltiSnips/text_objects/_base.py @@ -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