Compare commits

...

3 Commits

Author SHA1 Message Date
WerWolv 4e22d636d3 fix: Yet another hex editor scrolling issue 2022-12-24 15:29:42 +01:00
WerWolv e71841b871 fix: Crash when printing NULL bytes to the pattern console 2022-12-24 15:29:20 +01:00
WerWolv e272c5d000 build: Updated dependencies 2022-12-24 15:28:51 +01:00
4 changed files with 4 additions and 4 deletions

2
lib/external/curl vendored

@ -1 +1 @@
Subproject commit cd95ee9f771361acf241629d2fe5507e308082a2
Subproject commit c12fb3ddaf48e709a7a4deaa55ec485e4df163ee

@ -1 +1 @@
Subproject commit 10a7c78737088bc0b0632cc8fb7132d5be32c42d
Subproject commit 3b851486f2d05f5402244234922e1ce78eee8b8a

View File

@ -246,7 +246,7 @@ namespace hex::plugin::builtin {
continue;
}
if (ImGui::Selectable(hex::format("{}##ConsoleLine", message).c_str()))
if (ImGui::Selectable(hex::format("{}##ConsoleLine", hex::encodeByteString({ message.begin(), message.end() })).c_str()))
ImGui::SetClipboardText(message.c_str());
ImGui::PopStyleColor();

View File

@ -617,7 +617,7 @@ namespace hex::plugin::builtin::ui {
// Scroll to the cursor if it's either at the top or bottom edge of the screen
if (this->m_shouldScrollToSelection && isSelectionValid()) {
// Make sure simply clicking on a byte at the edge of the screen won't cause scrolling
if ((ImGui::IsMouseDown(ImGuiMouseButton_Left) && *this->m_selectionStart != *this->m_selectionEnd)) {
if ((ImGui::IsMouseDragging(ImGuiMouseButton_Left) && *this->m_selectionStart != *this->m_selectionEnd)) {
auto fractionPerLine = 1.0 / (this->m_visibleRowCount + 1);
if (y == (u64(clipper.DisplayStart) + 3)) {