From cb2aee0ed7fe26a46731e934c1db382566351caa Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 22 Oct 2023 21:52:55 +0200 Subject: [PATCH] fix: Various TCP tool issues --- lib/external/libwolv | 2 +- plugins/builtin/source/content/tools_entries.cpp | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/external/libwolv b/lib/external/libwolv index c5698ed2c..d902b5597 160000 --- a/lib/external/libwolv +++ b/lib/external/libwolv @@ -1 +1 @@ -Subproject commit c5698ed2cf3ea14382a597cc041fb6fc2674a982 +Subproject commit d902b5597735ed91e9626598304853774adee5ef diff --git a/plugins/builtin/source/content/tools_entries.cpp b/plugins/builtin/source/content/tools_entries.cpp index 8e15396a5..b2a2e09db 100644 --- a/plugins/builtin/source/content/tools_entries.cpp +++ b/plugins/builtin/source/content/tools_entries.cpp @@ -1954,7 +1954,7 @@ namespace hex::plugin::builtin { for (const auto &message : messages) { ImGui::TableNextRow(); ImGui::TableNextColumn(); - ImGui::TextFormattedWrappedSelectable("{}", message.c_str()); + ImGui::TextFormattedSelectable("{}", message.c_str()); } } @@ -1968,6 +1968,7 @@ namespace hex::plugin::builtin { if (ImGui::IconButton(ICON_VS_DEBUG_STACKFRAME, ImGui::GetStyleColorVec4(ImGuiCol_Text))) { client.writeString(input); + input.clear(); } ImGui::EndTabItem(); @@ -2014,7 +2015,7 @@ namespace hex::plugin::builtin { messages.emplace_back(data.begin(), data.end()); return {}; - }); + }, nullptr, true); } }); } @@ -2029,7 +2030,7 @@ namespace hex::plugin::builtin { for (const auto &message : messages) { ImGui::TableNextRow(); ImGui::TableNextColumn(); - ImGui::TextFormattedWrappedSelectable("{}", message.c_str()); + ImGui::TextFormattedSelectable("{}", message.c_str()); } }