Don't clear annotations when only style changes

This commit is contained in:
baldurk
2022-05-25 17:02:17 +01:00
parent 9bde5324b6
commit 4b0b746217
+1 -1
View File
@@ -122,7 +122,7 @@ BufferFormatSpecifier::BufferFormatSpecifier(QWidget *parent)
QObject::connect(formatText, &ScintillaEdit::modified,
[this](int type, int, int, int, const QByteArray &, int, int, int) {
ui->savedList->clearSelection();
if(!(type & SC_MOD_CHANGEANNOTATION))
if(!(type & (SC_MOD_CHANGEANNOTATION | SC_MOD_CHANGESTYLE)))
formatText->annotationClearAll();
});