diff options
Diffstat (limited to 'plugins/NewStory/src/history_control.cpp')
-rw-r--r-- | plugins/NewStory/src/history_control.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index bfebfb4600..6d7f6a339f 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -153,15 +153,15 @@ static void FixScrollPosition(HWND hwnd, NewstoryListData *data) data->cachedMaxTopPixel = (windowHeight < tmp) ? windowHeight - tmp : 0; } - if (data->scrollTopItem < 0) { + if (data->scrollTopItem < 0) data->scrollTopItem = 0; - } if ((data->scrollTopItem > data->cachedMaxTopItem) || ((data->scrollTopItem == data->cachedMaxTopItem) && (data->scrollTopPixel < data->cachedMaxTopPixel))) { data->scrollTopItem = data->cachedMaxTopItem; data->scrollTopPixel = data->cachedMaxTopPixel; } + RecalcScrollBar(hwnd, data); } @@ -613,6 +613,10 @@ LRESULT CALLBACK NewstoryListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM } return TRUE; + case NSM_SEEKEND: + SendMessage(hwnd, NSM_SETCARET, data->items.getCount() - 1, 1); + break; + case NSM_COPY: { CMStringW res; |