mirror of https://github.com/WerWolv/ImHex.git
Compare commits
3 Commits
dbcb13f473
...
766fd626f2
Author | SHA1 | Date |
---|---|---|
WerWolv | 766fd626f2 | |
WerWolv | be1f711fda | |
WerWolv | ef3627321c |
|
@ -2123,7 +2123,7 @@ void TextEditor::EnsureCursorVisible() {
|
|||
if (len + mTextStart < left + 4)
|
||||
ImGui::SetScrollX(std::max(0.0f, len + mTextStart - 4));
|
||||
if (len + mTextStart > right - 4)
|
||||
ImGui::SetScrollX(std::max(0.0f, len + mTextStart + 4 - width));
|
||||
ImGui::SetScrollX(std::max(0.0f, len + mTextStart + 4));
|
||||
}
|
||||
|
||||
int TextEditor::GetPageSize() const {
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 58f1702be038aca08a01ddd61d41b1c724b43a31
|
||||
Subproject commit f5ae1a5b85c6fd7ef07e133fae480a6cda08dd55
|
|
@ -174,6 +174,11 @@ namespace hex::plugin::builtin {
|
|||
ImGui::SetCursorPosX(width / 9);
|
||||
if (ImGui::Button("hex.builtin.welcome.safety_backup.restore"_lang, ImVec2(width / 3, 0))) {
|
||||
ProjectFile::load(s_safetyBackupPath);
|
||||
ProjectFile::clearPath();
|
||||
|
||||
for (const auto &provider : ImHexApi::Provider::getProviders())
|
||||
provider->markDirty();
|
||||
|
||||
fs::remove(s_safetyBackupPath);
|
||||
|
||||
ImGui::CloseCurrentPopup();
|
||||
|
|
|
@ -284,7 +284,7 @@ namespace hex::plugin::builtin::ui {
|
|||
auto nextEditingAddress = *this->m_editingAddress + this->m_currDataVisualizer->getBytesPerCell();
|
||||
this->setSelection(nextEditingAddress, nextEditingAddress);
|
||||
|
||||
if (nextEditingAddress >= this->m_provider->getSize())
|
||||
if (nextEditingAddress >= this->m_provider->getBaseAddress() + this->m_provider->getCurrentPageAddress() + this->m_provider->getSize())
|
||||
this->m_editingAddress = std::nullopt;
|
||||
else
|
||||
this->m_editingAddress = nextEditingAddress;
|
||||
|
|
Loading…
Reference in New Issue