diff options
author | Andrew Obuchowicz | 2020-09-18 07:06:22 +0000 |
---|---|---|
committer | Niraj Modi | 2020-09-18 07:06:22 +0000 |
commit | 5b49b58b536eea757115f6fde58a865a06d44d0a (patch) | |
tree | 19eb91549b466fcab298abcb4e08ecf478018b8c | |
parent | 7653840ddb71b8cf380e07dd008e912775c76a9d (diff) | |
download | eclipse.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.java | 4 |
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(); |