Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvpunski2010-02-14 08:14:21 +0000
committervpunski2010-02-14 08:14:21 +0000
commit430d8a60cf2ed132b152743de7c6ac4f22aad4f1 (patch)
tree5977c8d8681e18398b9ad4a06cd0f053efe1d425
parent42625a900d55fbe99cea9a35df5a5dc0ab20d661 (diff)
downloadorg.eclipse.pdt-430d8a60cf2ed132b152743de7c6ac4f22aad4f1.tar.gz
org.eclipse.pdt-430d8a60cf2ed132b152743de7c6ac4f22aad4f1.tar.xz
org.eclipse.pdt-430d8a60cf2ed132b152743de7c6ac4f22aad4f1.zip
Bug 260219 - Autocomplite function overwrites closing bracket in some situationsv20100214-1300
-rw-r--r--plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/contexts/ClassMemberContext.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/contexts/ClassMemberContext.java b/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/contexts/ClassMemberContext.java
index a3820cc2a..27326dfd0 100644
--- a/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/contexts/ClassMemberContext.java
+++ b/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/contexts/ClassMemberContext.java
@@ -135,7 +135,8 @@ public abstract class ClassMemberContext extends StatementContext {
if (phpToken.getTextLength() == phpToken.getLength()) {
int addOffset = 0;
- if (nextRegion.getType() == PHPRegionTypes.PHP_TOKEN) {
+ if (nextRegion.getType() == PHPRegionTypes.PHP_TOKEN
+ || nextRegion.getType() == PHPRegionTypes.PHP_SEMICOLON) {
addOffset = phpToken.getEnd();
} else {
addOffset = nextRegion.getTextEnd();

Back to the top