Git: Fix commit message highlighting

Fixes the following pattern:

    Subject

    # comment

    Another line - considered as subject

Change-Id: I708521efde886c6f5be748795251ce0aafc8f590
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Orgad Shaneh
2013-04-29 13:48:03 +03:00
committed by Orgad Shaneh
parent c77395d379
commit cb02e45b4a

View File

@@ -88,6 +88,7 @@ void GitSubmitHighlighter::highlightBlock(const QString &text)
return; return;
} else if (text.startsWith(m_hashChar)) { } else if (text.startsWith(m_hashChar)) {
setFormat(0, text.size(), m_commentFormat); setFormat(0, text.size(), m_commentFormat);
setCurrentBlockState(state);
return; return;
} else if (state == None) { } else if (state == None) {
state = Header; state = Header;