8497: Error on use of Ctrl-Z
This commit is contained in:
parent
45f82f1ec5
commit
e1a71dcd34
@ -284,6 +284,10 @@ class UndoableEntry(Gtk.Entry):
|
||||
self.set_position(undo_action.offset)
|
||||
|
||||
def _undo_delete(self, undo_action):
|
||||
if not isinstance(undo_action.text, UNITYPE):
|
||||
undo_action.text = conv_to_unicode(undo_action.text, 'utf-8')
|
||||
with warnings.catch_warnings():
|
||||
warnings.simplefilter('ignore')
|
||||
self.insert_text(undo_action.text, undo_action.start)
|
||||
if undo_action.delete_key_used:
|
||||
self.set_position(undo_action.start)
|
||||
|
Loading…
Reference in New Issue
Block a user