summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-09-28 20:53:37 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-09-28 20:53:37 +0300
commit965f529d061ef007545061fa0c7271a7ff74b98d (patch)
tree0d46b2d367d940005f802ed24ecef52155bb44c5 /plugins
parentbb4f90d0ee557ba9da2d866b89363e58920f9500 (diff)
fixes #3693 (NewStory: по щелчку ПКМ на сообщении выделять его)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/NewStory/src/history_control.cpp2
1 files changed, 2 insertions, 0 deletions
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;