summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/history_control.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/NewStory/src/history_control.cpp')
-rw-r--r--plugins/NewStory/src/history_control.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp
index 8cca15f272..313d8bd3ea 100644
--- a/plugins/NewStory/src/history_control.cpp
+++ b/plugins/NewStory/src/history_control.cpp
@@ -52,7 +52,7 @@ void NewstoryListData::OnContextMenu(int index, POINT pt)
if (item == nullptr)
return;
- HMENU hMenu = NSMenu_Build(item);
+ HMENU hMenu = NSMenu_Build(this, item);
if (pMsgDlg != nullptr && pMsgDlg->isChat()) {
EnableMenuItem(hMenu, 2, MF_BYPOSITION | MF_GRAYED);
@@ -588,6 +588,13 @@ void NewstoryListData::RecalcScrollBar()
}
}
+void NewstoryListData::Quote()
+{
+ if (pMsgDlg)
+ if (auto *pItem = LoadItem(caret))
+ pMsgDlg->SetMessageText(Srmm_Quote(pItem->wtext));
+}
+
void NewstoryListData::ScheduleDraw()
{
bWasAtBottom = AtBottom();