summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-05-05 12:56:42 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-05-05 12:56:42 +0300
commitbfa8abda6dc3b9eef08d9c1da2d512a8bcc4132a (patch)
treecf9909ad0cf9be3a36e9910e9a7b41dae48a62e5 /plugins
parentf7b207ada21b9aa2cc984afbcae3c8f36150f999 (diff)
fixes #2388 (NewStory: проблема с выделением последнего сообщения)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/NewStory/src/history_control.cpp9
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);
}
}
}