summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2011-02-14 16:02:36 +0000
committerFelipe Heidrich <fheidric>2011-02-14 16:02:36 +0000
commit596534b389156408d0eb02b8cbdcbf5a0d198971 (patch)
tree58f88cdeeae1398b7282bd2aa1b79c455e33a6a9
parent101250c45d80fc34275150d25ceaef92cfc2d345 (diff)
downloadeclipse.platform.swt-596534b389156408d0eb02b8cbdcbf5a0d198971.tar.gz
eclipse.platform.swt-596534b389156408d0eb02b8cbdcbf5a0d198971.tar.xz
eclipse.platform.swt-596534b389156408d0eb02b8cbdcbf5a0d198971.zip
Bug 101654 - [typing] [Ctrl+] Home/End doesn't reveal caret if already at position
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java2
1 files changed, 1 insertions, 1 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 40075c9f28..b149ccfa7b 100755
--- 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
@@ -2466,7 +2466,7 @@ void doContentEnd() {
doLineEnd();
} else {
int length = content.getCharCount();
- if (caretOffset < length) {
+ if (caretOffset <= length) {
setCaretOffset(length, SWT.DEFAULT);
showCaret();
}