Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2016-01-14 21:33:38 +0000
committerMarkus Keller2016-01-15 13:09:21 +0000
commit26d58984368004cf2cb4f4b92e857a7db359c22e (patch)
tree3f01c04aca81c9fac509b591ae9bda79268f98cd
parentdb8580f1409348086638ff981df02c90e7703e6f (diff)
downloadeclipse.platform.swt-26d58984368004cf2cb4f4b92e857a7db359c22e.tar.gz
eclipse.platform.swt-26d58984368004cf2cb4f4b92e857a7db359c22e.tar.xz
eclipse.platform.swt-26d58984368004cf2cb4f4b92e857a7db359c22e.zip
Bug 485722: [cocoa] Moving cursor with arrow keys on Mac OS not working in "Word Wrap" mode
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
index 76e6e7c2e2..922d8d0560 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
@@ -2632,6 +2632,7 @@ void doLineDown(boolean select) {
caretLine++;
} else {
y = layout.getLineBounds(lineIndex + 1).y;
+ y++; // bug 485722: workaround for fractional line heights
}
renderer.disposeTextLayout(layout);
} else {
@@ -2714,9 +2715,11 @@ void doLineUp(boolean select) {
if (!firstLine) {
caretLine--;
y = renderer.getLineHeight(caretLine) - 1;
+ y--; // bug 485722: workaround for fractional line heights
}
} else {
y = layout.getLineBounds(lineIndex - 1).y;
+ y++; // bug 485722: workaround for fractional line heights
}
renderer.disposeTextLayout(layout);
} else {

Back to the top