Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leherbauer2008-03-06 13:55:00 +0000
committerAnton Leherbauer2008-03-06 13:55:00 +0000
commit3ddfd62af86b9572832fd3b72448a046c0bffb9c (patch)
tree73b3e658e1c378e713fe1434fe5e16298dd44836 /core/org.eclipse.cdt.ui.tests
parente10f67a94a4f5b257b048a8c3096e497184f170f (diff)
downloadorg.eclipse.cdt-3ddfd62af86b9572832fd3b72448a046c0bffb9c.tar.gz
org.eclipse.cdt-3ddfd62af86b9572832fd3b72448a046c0bffb9c.tar.xz
org.eclipse.cdt-3ddfd62af86b9572832fd3b72448a046c0bffb9c.zip
Fix mark occurrences on outdated offset while editing
Diffstat (limited to 'core/org.eclipse.cdt.ui.tests')
-rw-r--r--core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/MarkOccurrenceTest.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/MarkOccurrenceTest.java b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/MarkOccurrenceTest.java
index 516cc7e2d32..c3da7593e47 100644
--- a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/MarkOccurrenceTest.java
+++ b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/MarkOccurrenceTest.java
@@ -356,6 +356,7 @@ public class MarkOccurrenceTest extends BaseUITestCase {
}
assertNotNull(fMatch);
+ fMatch= new Region(fMatch.getOffset(), fMatch.getLength() - 1);
fEditor.selectAndReveal(fMatch.getOffset(), fMatch.getLength());
assertOccurrences(2);

Back to the top