parent
1b21741a2d
commit
5aaeae5e85
@ -350,10 +350,11 @@ class EditableTextObject(TextObject):
|
|||||||
child._parent = None
|
child._parent = None
|
||||||
self._children.remove(child)
|
self._children.remove(child)
|
||||||
|
|
||||||
# If this is a tabstop, delete it
|
# If this is a tabstop, delete it. Might have been deleted already if
|
||||||
|
# it was nested.
|
||||||
try:
|
try:
|
||||||
del self._tabstops[child.number]
|
del self._tabstops[child.number]
|
||||||
except AttributeError:
|
except (AttributeError, KeyError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class NoneditableTextObject(TextObject):
|
class NoneditableTextObject(TextObject):
|
||||||
|
Loading…
Reference in New Issue
Block a user