We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a72f2f commit c57fed1Copy full SHA for c57fed1
src/qcodeedit/lib/qeditor.cpp
@@ -5401,15 +5401,18 @@ void QEditor::write(const QString& s)
5401
{
5402
document()->clearLanguageMatches();
5403
5404
- if (!m_mirrors.empty())
+ bool macroing=false;
5405
+ if (!m_mirrors.empty()){
5406
m_doc->beginMacro();
5407
+ macroing=true;
5408
+ }
5409
5410
insertText(m_cursor, s);
5411
5412
for ( int i = 0; i < m_mirrors.count(); ++i )
5413
insertText(m_mirrors[i], s);
5414
5415
+ if (macroing)
5416
m_doc->endMacro();
5417
5418
emitCursorPositionChanged();
0 commit comments