forked from qt-creator/qt-creator
Highlight matching parentheses under text cursor
In replace mode highlight parentheses that are right under the block cursor. Change-Id: I6cef5fe302b0797c66ed9541d28ec495fb1db1d1 Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
@@ -5015,6 +5015,8 @@ void BaseTextEditorWidget::_q_matchParentheses()
|
||||
|
||||
QTextCursor backwardMatch = textCursor();
|
||||
QTextCursor forwardMatch = textCursor();
|
||||
if (overwriteMode())
|
||||
backwardMatch.movePosition(QTextCursor::Right);
|
||||
const TextBlockUserData::MatchType backwardMatchType = TextBlockUserData::matchCursorBackward(&backwardMatch);
|
||||
const TextBlockUserData::MatchType forwardMatchType = TextBlockUserData::matchCursorForward(&forwardMatch);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user