We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72d3122 commit 00dca53Copy full SHA for 00dca53
bpython/urwid.py
@@ -251,7 +251,11 @@ def set_edit_markup(self, markup):
251
252
You should arrange for this to be called from the 'change' signal.
253
"""
254
- self._bpy_text, self._bpy_attr = urwid.decompose_tagmarkup(markup)
+ if markup:
255
+ self._bpy_text, self._bpy_attr = urwid.decompose_tagmarkup(markup)
256
+ else:
257
+ # decompose_tagmarkup in some urwids fails on the empty list
258
+ self._bpy_text, self._bpy_attr = '', []
259
# This is redundant when we're called off the 'change' signal.
260
# I'm assuming this is cheap, making that ok.
261
self._invalidate()
0 commit comments