From 2f71af700ac7b4077aa6734064376aed11fa6c4e Mon Sep 17 00:00:00 2001 From: dartraiden Date: Wed, 22 Feb 2023 03:09:35 +0300 Subject: fixes #3340 (Do not add space on autocomplete) --- plugins/TabSRMM/src/msgdialog.cpp | 1 - plugins/TabSRMM/src/msgdlgother.cpp | 1 - 2 files changed, 2 deletions(-) (limited to 'plugins/TabSRMM/src') diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp index 67d48d5545..e07b4b642a 100644 --- a/plugins/TabSRMM/src/msgdialog.cpp +++ b/plugins/TabSRMM/src/msgdialog.cpp @@ -1035,7 +1035,6 @@ void CMsgDialog::onDblClick_List(CCtrlListBox *pList) CMStringW tszName(ui->pszNick); if (selStart == 0 && mir_wstrlen(g_Settings.pwszAutoText)) tszName.Append(g_Settings.pwszAutoText); - tszName.AppendChar(' '); m_message.SendMsg(EM_REPLACESEL, FALSE, (LPARAM)tszName.GetString()); PostMessage(m_hwnd, WM_MOUSEACTIVATE, 0, 0); diff --git a/plugins/TabSRMM/src/msgdlgother.cpp b/plugins/TabSRMM/src/msgdlgother.cpp index 06501884f7..fb80588a80 100644 --- a/plugins/TabSRMM/src/msgdlgother.cpp +++ b/plugins/TabSRMM/src/msgdlgother.cpp @@ -2284,7 +2284,6 @@ LBL_SkipEnd: szReplace = pszName; if (mir_wstrlen(g_Settings.pwszAutoText)) szReplace.Append(g_Settings.pwszAutoText); - szReplace.AppendChar(' '); m_wszSearchResult = szReplace.Detach(); pszName = m_wszSearchResult; } -- cgit v1.2.3