mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 21:05:56 -05:00
fix: Issue with erasing characters when pasting then into ImHex
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user