From 9b03f7c0356c52d532cb224093c15dc6af3ecb9e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 24 Nov 2024 19:15:00 +0300 Subject: fixes #4791 (tabSRMM: fix for copy+paste issue) --- plugins/TabSRMM/src/msgdialog.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp index 3d93d6d4a5..13aa569bbf 100644 --- a/plugins/TabSRMM/src/msgdialog.cpp +++ b/plugins/TabSRMM/src/msgdialog.cpp @@ -1903,7 +1903,16 @@ LRESULT CMsgDialog::WndProc_Message(UINT msg, WPARAM wParam, LPARAM lParam) return TRUE; } - return CSuper::WndProc_Message(msg, wParam, lParam); + auto ret = CSuper::WndProc_Message(msg, wParam, lParam); + + switch (msg) { + case EM_PASTESPECIAL: + case WM_PASTE: + if (m_bIsAutosizingInput) + SendMessage(m_message.GetHwnd(), EM_SETSEL, 0, 0); + } + + return ret; } ///////////////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3