From: Jack Jansen Date: Wed, 21 Feb 2001 15:45:55 +0000 (+0000) Subject: Waste 2.0 has many more options for the undo label. X-Git-Tag: v2.1b1~242 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=316a01093dfae6ffa891be356543074a4c55b0e8;p=thirdparty%2FPython%2Fcpython.git Waste 2.0 has many more options for the undo label. --- diff --git a/Mac/Tools/IDE/Wtext.py b/Mac/Tools/IDE/Wtext.py index 11b02768e6f2..41ea5ec818e2 100644 --- a/Mac/Tools/IDE/Wtext.py +++ b/Mac/Tools/IDE/Wtext.py @@ -85,7 +85,8 @@ class _ScrollWidget: UNDOLABELS = [ # Indexed by WEGetUndoInfo() value - None, "", "typing", "Cut", "Paste", "Clear", "Drag", "Style"] + None, "", "typing", "Cut", "Paste", "Clear", "Drag", "Style", + "Ruler", "backspace", "delete", "transform", "resize"] class EditText(Wbase.SelectableWidget, _ScrollWidget): @@ -452,7 +453,10 @@ class EditText(Wbase.SelectableWidget, _ScrollWidget): #if not doundo: # return 0 which, redo = self.ted.WEGetUndoInfo() - which = UNDOLABELS[which] + if which < len(UNDOLABELS): + which = UNDOLABELS[which] + else: + which = "" if which == None: return None if redo: