From 4b0b7462174c93e0840053b6dd7a0162ed514751 Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 25 May 2022 17:02:17 +0100 Subject: [PATCH] Don't clear annotations when only style changes --- qrenderdoc/Widgets/BufferFormatSpecifier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qrenderdoc/Widgets/BufferFormatSpecifier.cpp b/qrenderdoc/Widgets/BufferFormatSpecifier.cpp index b56c57f6c..e171f78b7 100644 --- a/qrenderdoc/Widgets/BufferFormatSpecifier.cpp +++ b/qrenderdoc/Widgets/BufferFormatSpecifier.cpp @@ -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(); });