Moved quick-exit check back to the indenter.

Reviewed-by: ckamm
This commit is contained in:
Erik Verbruggen
2010-04-30 13:35:03 +02:00
parent ac517807ea
commit 0970a8e6d2
2 changed files with 3 additions and 3 deletions

View File

@@ -569,6 +569,9 @@ int QmlJSIndenter::indentForStandaloneLine()
*/ */
int QmlJSIndenter::indentForBottomLine(QTextBlock begin, QTextBlock end, QChar typedIn) int QmlJSIndenter::indentForBottomLine(QTextBlock begin, QTextBlock end, QChar typedIn)
{ {
if (begin == end)
return 0;
const QTextBlock last = end.previous(); const QTextBlock last = end.previous();
initialize(begin, last); initialize(begin, last);

View File

@@ -564,9 +564,6 @@ bool LineInfo::isContinuationLine()
void LineInfo::initialize(QTextBlock begin, QTextBlock end) void LineInfo::initialize(QTextBlock begin, QTextBlock end)
{ {
if (begin == end)
return;
yyProgram = Program(begin, end); yyProgram = Program(begin, end);
startLinizer(); startLinizer();
} }