summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-04-30 13:38:04 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-04-30 13:38:04 +0300
commite766fcc93ca33bd00d684cbe045b0c61cb50cd3e (patch)
tree88e61e51143e19f41601cf42d6221e2489337771
parentbaf51bf25e71d3c4c3130f56153919cbeed4ff75 (diff)
fixes #4428 completely
-rw-r--r--plugins/NewStory/src/history_control.cpp12
1 files changed, 6 insertions, 6 deletions
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: