From c5866000711953d0b970c6fe649dab811ba00e4b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 1 Oct 2024 14:39:59 +0300 Subject: =?UTF-8?q?fixes=20#4707=20(NewStory:=20=D0=BF=D1=80=D0=B8=20?= =?UTF-8?q?=D0=BA=D0=BB=D0=B8=D0=BA=D0=B5=20=D0=BD=D0=B0=20=D1=81=D1=81?= =?UTF-8?q?=D1=8B=D0=BB=D0=BA=D1=83=20=D0=BF=D0=BE=D0=B7=D0=B8=D1=86=D0=B8?= =?UTF-8?q?=D1=8F=20=D1=81=D0=BA=D1=80=D0=BE=D0=BB=D0=BB=D0=B8=D0=BD=D0=B3?= =?UTF-8?q?=D0=B0=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BB=D0=B5=D1=82=D0=B0=D0=B5?= =?UTF-8?q?=D1=82=20=D0=BD=D0=B0=20=D0=BD=D0=B0=D1=87=D0=B0=D0=BB=D0=BE=20?= =?UTF-8?q?=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D1=8F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/NewStory/src/history_control.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'plugins') diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index 7b95412522..4b2082582d 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -1440,18 +1440,16 @@ LRESULT CALLBACK NewstoryListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM if (wParam & MK_CONTROL) { data->ToggleSelection(idx, idx); - data->SetCaret(idx); + data->SetCaret(idx, false); } else if (wParam & MK_SHIFT) { data->AddSelection(data->caret, idx); - data->SetCaret(idx); + data->SetCaret(idx, false); } else { - pt.y -= pItem->savedTop; - data->selStart = idx; data->SetSelection(idx, idx); - data->SetCaret(idx); + data->SetCaret(idx, false); } } SetFocus(hwnd); -- cgit v1.2.3