From d43f25ec700272694eea2e35100732901a79c80e Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 9 Jan 2024 01:26:47 +0100 Subject: [PATCH] impr: Remove spaces from fill command input --- plugins/builtin/source/content/views/view_hex_editor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/builtin/source/content/views/view_hex_editor.cpp b/plugins/builtin/source/content/views/view_hex_editor.cpp index 2e77dd258..cd5b73c9e 100644 --- a/plugins/builtin/source/content/views/view_hex_editor.cpp +++ b/plugins/builtin/source/content/views/view_hex_editor.cpp @@ -528,10 +528,12 @@ namespace hex::plugin::builtin { } private: - static void fill(u64 address, size_t size, const std::string &input) { + static void fill(u64 address, size_t size, std::string input) { if (!ImHexApi::Provider::isValid()) return; + std::erase(input, ' '); + auto bytes = crypt::decode16(input); if (bytes.empty()) return;