From 50083f70cb6982eb4b8f614635f4179e3bbdf8ce Mon Sep 17 00:00:00 2001 From: toshihiro Date: Sat, 30 Jun 2007 23:08:36 +0000 Subject: [PATCH] Could not show completion list as expected on line 1 and 2. --- .../phpeditor/php/PHPCompletionProcessor.java | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPCompletionProcessor.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPCompletionProcessor.java index 4f364ff..ebca77f 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPCompletionProcessor.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPCompletionProcessor.java @@ -247,14 +247,14 @@ public class PHPCompletionProcessor implements IContentAssistProcessor { int j = start; if (j != 0) { char ch; - while (j-- > 0) { - ch = document.getChar(j); + while (j > 0) { + ch = document.getChar(--j); if (ch == '\n') { break; } } - while (j-- > 0) { - ch = document.getChar(j); + while (j > 0) { + ch = document.getChar(--j); if (ch == '\n') { break; } -- 1.7.1