From e766fcc93ca33bd00d684cbe045b0c61cb50cd3e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 30 Apr 2025 13:38:04 +0300 Subject: fixes #4428 completely --- plugins/NewStory/src/history_control.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins') diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index 53e001979a..a9eb58109b 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -1487,7 +1487,7 @@ LRESULT CALLBACK NewstoryListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM if (g_plugin.bHppCompat) { data->EventUp(); if (isShift) - data->SetSelection(data->caret, oldCaret); + data->AddSelection(data->caret, oldCaret); } else data->LineUp(); break; @@ -1496,7 +1496,7 @@ LRESULT CALLBACK NewstoryListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM if (g_plugin.bHppCompat) { data->EventDown(); if (isShift) - data->SetSelection(oldCaret, data->caret); + data->AddSelection(oldCaret, data->caret); } else data->LineDown(); break; @@ -1508,7 +1508,7 @@ LRESULT CALLBACK NewstoryListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM if (g_plugin.bHppCompat) { data->EventPageUp(); if (isShift) - data->SetSelection(data->caret, oldCaret); + data->AddSelection(data->caret, oldCaret); } else data->PageUp(); } @@ -1521,7 +1521,7 @@ LRESULT CALLBACK NewstoryListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM if (g_plugin.bHppCompat) { data->EventPageDown(); if (isShift) - data->SetSelection(oldCaret, data->caret); + data->AddSelection(oldCaret, data->caret); } else data->PageDown(); } @@ -1530,13 +1530,13 @@ LRESULT CALLBACK NewstoryListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM case VK_HOME: data->ScrollTop(); if (isShift) - data->SetSelection(0, data->caret); + data->AddSelection(0, data->caret); break; case VK_END: data->ScrollBottom(); if (isShift) - data->SetSelection(data->caret, data->totalCount); + data->AddSelection(data->caret, data->totalCount); break; case VK_F2: -- cgit v1.2.3