summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorLina Kemmel2011-10-09 10:06:41 (EDT)
committer Felipe Heidrich2011-10-11 10:54:43 (EDT)
commit97a564863cb3520bd1597a176dc964c37d571187 (patch)
tree3eb511693e3ecbdff365e0de30756c3dcbb7b0fa
parent6106d07aedd16e8634378b6697ca70116afe3628 (diff)
downloadeclipse.platform.swt-97a564863cb3520bd1597a176dc964c37d571187.zip
eclipse.platform.swt-97a564863cb3520bd1597a176dc964c37d571187.tar.gz
eclipse.platform.swt-97a564863cb3520bd1597a176dc964c37d571187.tar.bz2
Patch per comments 171 & 173
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java
index 2def495..2fa156f 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java
@@ -2536,6 +2536,12 @@ int /*long*/ windowProc (int /*long*/ hwnd, int msg, int /*long*/ wParam, int /*
int /*long*/ code;
if (hooks (SWT.GetSegments) || filters (SWT.GetSegments)) {
switch (msg) {
+ case OS.EM_UNDO:
+ if ((OS.GetWindowLong (handle, OS.GWL_STYLE) & OS.ES_MULTILINE) == 0) return 1;
+ // else FALL THROUGH
+ case OS.WM_UNDO:
+ case OS.EM_CANUNDO:
+ return 0;
case OS.WM_KEYDOWN:
processSegments = wParam == OS.VK_DELETE;
break;