Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Pazderski2019-03-19 17:36:41 -0400
committerPaul Pazderski2019-03-20 03:24:33 -0400
commit8c56c63ef93e93d8ed5d40f07ea107a4e7a02196 (patch)
tree9f9def010387c7fccb80a59dfa363cc8ce29203b /org.eclipse.text
parenta2bd5dd03d3f147f3577f01d5dcc4af083289a4a (diff)
downloadeclipse.platform.text-8c56c63ef93e93d8ed5d40f07ea107a4e7a02196.tar.gz
eclipse.platform.text-8c56c63ef93e93d8ed5d40f07ea107a4e7a02196.tar.xz
eclipse.platform.text-8c56c63ef93e93d8ed5d40f07ea107a4e7a02196.zip
Bug 545565 - ListLineTracker returns wrong results after content set toI20190321-1800I20190321-0435I20190321-0245I20190320-1800
null If tracked text is set to null the tracked content length was not updated. Change-Id: I26ed7b21879ff77a1e3b7828a4e4a4d969608cb8 Signed-off-by: Paul Pazderski <paul-eclipse@ppazderski.de>
Diffstat (limited to 'org.eclipse.text')
-rw-r--r--org.eclipse.text/src/org/eclipse/jface/text/ListLineTracker.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.text/src/org/eclipse/jface/text/ListLineTracker.java b/org.eclipse.text/src/org/eclipse/jface/text/ListLineTracker.java
index a82c20b43..56c7edee9 100644
--- a/org.eclipse.text/src/org/eclipse/jface/text/ListLineTracker.java
+++ b/org.eclipse.text/src/org/eclipse/jface/text/ListLineTracker.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2008 IBM Corporation and others.
+ * Copyright (c) 2000, 2019 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -330,6 +330,8 @@ abstract class ListLineTracker implements ILineTracker {
if (text != null) {
fTextLength= text.length();
createLines(text, 0, 0);
+ } else {
+ fTextLength= 0;
}
}

Back to the top