summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-08-18 15:43:13 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-08-18 15:43:13 +0300
commitc1d64084b0968464e6d21623eb54e24569419f0b (patch)
treeb16237a675076bfd66e62b1e37db9b418f4772f5
parent864c3e4a00ab61c51753b6a8307ebe0e421fcae3 (diff)
removed code partially restored
-rw-r--r--plugins/NewStory/src/history_control.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp
index 71762f1934..a20e5a752d 100644
--- a/plugins/NewStory/src/history_control.cpp
+++ b/plugins/NewStory/src/history_control.cpp
@@ -408,6 +408,9 @@ int NewstoryListData::PaintItem(HDC hdc, int index, int top, int width)
auto *item = LoadItem(index);
item->savedTop = top;
+ // remove any selections that might be created by the BBCodes parser
+ MTextSendMessage(0, item->data, EM_SETSEL, 0, 0);
+
// LOGFONT lfText;
COLORREF clText, clBack, clLine;
int fontid, colorid;