summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-02-21 15:45:55 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-02-21 15:45:55 (GMT)
commit316a01093dfae6ffa891be356543074a4c55b0e8 (patch)
tree8e2b6b51b10a01c66f5d9f8febb0dabad9169825 /Mac
parent9ad2752381b10cae83eb9e8044aa77dfd87d7039 (diff)
downloadcpython-316a01093dfae6ffa891be356543074a4c55b0e8.zip
cpython-316a01093dfae6ffa891be356543074a4c55b0e8.tar.gz
cpython-316a01093dfae6ffa891be356543074a4c55b0e8.tar.bz2
Waste 2.0 has many more options for the undo label.
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Tools/IDE/Wtext.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/Mac/Tools/IDE/Wtext.py b/Mac/Tools/IDE/Wtext.py
index 11b0276..41ea5ec 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: