From aeb12c815f175f2db9a3d0c3e9b6e9790a1c6d51 Mon Sep 17 00:00:00 2001 From: Blu3train Date: Mon, 10 Apr 2023 16:33:01 +0200 Subject: [PATCH] added \x200b to recognize it in case it has to be found with a filter --- host/textthread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/textthread.cpp b/host/textthread.cpp index 46d2458..1daec3a 100644 --- a/host/textthread.cpp +++ b/host/textthread.cpp @@ -58,7 +58,7 @@ void TextThread::Push(BYTE* data, int length) } } - if (flushDelaySpacing && !buffer.empty() && (hp.type & (USING_STRING))) buffer += L" "; + if (flushDelaySpacing && !buffer.empty() && (hp.type & (USING_STRING))) buffer += L"\x200b "; // insert \x200b to recognize it in case it has to be found with a filter if (hp.type & HEX_DUMP) for (int i = 0; i < length; i += sizeof(short)) buffer.append(FormatString(L"%04hX ", *(short*)(data + i))); else if (hp.type & USING_UNICODE) buffer.append((wchar_t*)data, length / sizeof(wchar_t)); else if (auto converted = StringToWideString(std::string((char*)data, length), hp.codepage ? hp.codepage : Host::defaultCodepage)) buffer.append(converted.value());