From c1d64084b0968464e6d21623eb54e24569419f0b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 18 Aug 2023 15:43:13 +0300 Subject: removed code partially restored --- plugins/NewStory/src/history_control.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit v1.2.3