forked from qt-creator/qt-creator
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:
committed by
Orgad Shaneh
parent
c77395d379
commit
cb02e45b4a
@@ -88,6 +88,7 @@ void GitSubmitHighlighter::highlightBlock(const QString &text)
|
||||
return;
|
||||
} else if (text.startsWith(m_hashChar)) {
|
||||
setFormat(0, text.size(), m_commentFormat);
|
||||
setCurrentBlockState(state);
|
||||
return;
|
||||
} else if (state == None) {
|
||||
state = Header;
|
||||
|
||||
Reference in New Issue
Block a user