Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2007-01-29 17:05:20 +0000
committerDani Megert2007-01-29 17:05:20 +0000
commitc5ab480e9d16b2fe9822d9b825cc00cc7c740703 (patch)
tree348affc4bc410e90b0ac3cee0dd6a992014bdfea
parent041fce08df2018d5f051f2fd77f52f303cff72fa (diff)
downloadeclipse.platform.text-c5ab480e9d16b2fe9822d9b825cc00cc7c740703.tar.gz
eclipse.platform.text-c5ab480e9d16b2fe9822d9b825cc00cc7c740703.tar.xz
eclipse.platform.text-c5ab480e9d16b2fe9822d9b825cc00cc7c740703.zip
Reverting previous change: causes too much flickering on typing.
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewer.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewer.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewer.java
index 489676623..269bc9a82 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewer.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewer.java
@@ -1160,10 +1160,9 @@ public class TextViewer extends Viewer implements
* selection has been updated while in redraw(false) mode, the new selection is revealed.
*/
private void updateViewport() {
- if (fSelectionSet)
+ if (fSelectionSet) {
revealRange(fSelection.getOffset(), fSelection.getLength());
-
- if (fStableLine != null) {
+ } else if (fStableLine != null) {
int stableLine;
try {
int lineStartOffset= fStableLine.getOffset();

Back to the top