1
0
mirror of synced 2025-01-19 01:24:15 +01:00

fix: Issue with erasing characters when pasting then into ImHex

This commit is contained in:
WerWolv 2022-02-16 10:54:17 +01:00
parent b79cfa213d
commit b9030d7e47

View File

@ -454,7 +454,7 @@ namespace hex::plugin::builtin {
if (!isValidHexString) return;
// Remove all whitespace
std::erase_if(clipboard, [](char c) { return std::isspace(c); });
clipboard.erase(std::remove_if(clipboard.begin(), clipboard.end(), [](char c) { return std::isspace(c); }), clipboard.end());
// Only paste whole bytes
if (clipboard.length() % 2 != 0) return;