Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich2006-07-31 19:12:33 +0000
committerFelipe Heidrich2006-07-31 19:12:33 +0000
commit1b4857ca5582341b060a9cdbc6d3c790697130fe (patch)
tree12bfef715f194a96b67c49e7131bd35d0be05a71 /bundles
parent40a39775782b46efdb32d3c256c5fdad016e4ca4 (diff)
downloadeclipse.platform.swt-1b4857ca5582341b060a9cdbc6d3c790697130fe.tar.gz
eclipse.platform.swt-1b4857ca5582341b060a9cdbc6d3c790697130fe.tar.xz
eclipse.platform.swt-1b4857ca5582341b060a9cdbc6d3c790697130fe.zip
62627 "Next Word" definition
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/TextLayout.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/TextLayout.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/TextLayout.java
index 0fb1503d8c..685f4d206b 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/TextLayout.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/TextLayout.java
@@ -864,7 +864,13 @@ int _getOffset (int offset, int movement, boolean forward) {
while (0 < offset && offset < length) {
OS.memmove(logAttr, attrs[0] + offset * PangoLogAttr.sizeof, PangoLogAttr.sizeof);
if (((movement & SWT.MOVEMENT_CLUSTER) != 0) && logAttr.is_cursor_position) break;
- if (((movement & SWT.MOVEMENT_WORD) != 0) && (logAttr.is_word_start || logAttr.is_sentence_end)) break;
+ if ((movement & SWT.MOVEMENT_WORD) != 0) {
+ if (forward) {
+ if (logAttr.is_word_end) break;
+ } else {
+ if (logAttr.is_word_start) break;
+ }
+ }
offset = validateOffset(offset, step);
}
OS.g_free(attrs[0]);

Back to the top