Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Obuchowicz2020-09-18 07:06:22 +0000
committerNiraj Modi2020-09-18 07:06:22 +0000
commit5b49b58b536eea757115f6fde58a865a06d44d0a (patch)
tree19eb91549b466fcab298abcb4e08ecf478018b8c
parent7653840ddb71b8cf380e07dd008e912775c76a9d (diff)
downloadeclipse.platform.swt-5b49b58b536eea757115f6fde58a865a06d44d0a.tar.gz
eclipse.platform.swt-5b49b58b536eea757115f6fde58a865a06d44d0a.tar.xz
eclipse.platform.swt-5b49b58b536eea757115f6fde58a865a06d44d0a.zip
Bug 563572 - org.eclipse.swt.custom.StyledText gets a blinking cursor
when READ_ONLY Change-Id: Id341f9ef91d77b47167b2146d79d29cce8a3f8ec Signed-off-by: Andrew Obuchowicz <andrew@aobuchow.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java4
1 files changed, 2 insertions, 2 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 6bd08bb92d..caae90fea7 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
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2018 IBM Corporation and others.
+ * Copyright (c) 2000, 2020 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -10839,7 +10839,7 @@ public void showSelection() {
void updateCaretVisibility() {
Caret caret = getCaret();
if (caret != null) {
- if (blockSelection && blockXLocation != -1) {
+ if (blockSelection && blockXLocation != -1 || !editable) {
caret.setVisible(false);
} else {
Point location = caret.getLocation();

Back to the top