diff options
author | George Hazan <ghazan@miranda.im> | 2020-05-05 12:56:42 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-05-05 12:56:42 +0300 |
commit | bfa8abda6dc3b9eef08d9c1da2d512a8bcc4132a (patch) | |
tree | cf9909ad0cf9be3a36e9910e9a7b41dae48a62e5 /plugins | |
parent | f7b207ada21b9aa2cc984afbcae3c8f36150f999 (diff) |
fixes #2388 (NewStory: проблема с выделением последнего сообщения)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/NewStory/src/history_control.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index e91671c1f8..f7225ef153 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -871,12 +871,13 @@ LRESULT CALLBACK NewstoryListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM SendMessage(hwnd, NSM_SETCARET, item, TRUE); } else { - if (data->caret == item) + if (data->caret == item) { data->BeginEditItem(item); - else { - SendMessage(hwnd, NSM_SELECTITEMS2, item, item); - SendMessage(hwnd, NSM_SETCARET, item, TRUE); + return 0; } + + SendMessage(hwnd, NSM_SELECTITEMS2, item, item); + SendMessage(hwnd, NSM_SETCARET, item, TRUE); } } } |