From cb02e45b4af09073e719564a9ddc883f764f2c27 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Mon, 29 Apr 2013 13:48:03 +0300 Subject: [PATCH] Git: Fix commit message highlighting Fixes the following pattern: Subject # comment Another line - considered as subject Change-Id: I708521efde886c6f5be748795251ce0aafc8f590 Reviewed-by: Tobias Hunger --- src/plugins/git/gitsubmiteditorwidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/git/gitsubmiteditorwidget.cpp b/src/plugins/git/gitsubmiteditorwidget.cpp index 26d0d7f526e..e00d20d7ed3 100644 --- a/src/plugins/git/gitsubmiteditorwidget.cpp +++ b/src/plugins/git/gitsubmiteditorwidget.cpp @@ -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;