From 965f529d061ef007545061fa0c7271a7ff74b98d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 28 Sep 2023 20:53:37 +0300 Subject: =?UTF-8?q?fixes=20#3693=20(NewStory:=20=D0=BF=D0=BE=20=D1=89?= =?UTF-8?q?=D0=B5=D0=BB=D1=87=D0=BA=D1=83=20=D0=9F=D0=9A=D0=9C=20=D0=BD?= =?UTF-8?q?=D0=B0=20=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D0=B8?= =?UTF-8?q?=20=D0=B2=D1=8B=D0=B4=D0=B5=D0=BB=D1=8F=D1=82=D1=8C=20=D0=B5?= =?UTF-8?q?=D0=B3=D0=BE)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/NewStory/src/history_control.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins') diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index 2022ae3f58..7b49f59d70 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -894,6 +894,8 @@ LRESULT CALLBACK NewstoryListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM if (data->caret != idx) data->EndEditItem(false); data->SetCaret(idx); + if (data->selStart == -1) + data->SetSelection(idx, idx); data->OnContextMenu(idx, pt); } break; -- cgit v1.2.3