mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 21:05:56 -05:00
patterns: Updated pattern language
This commit is contained in:
4
lib/external/imgui/source/TextEditor.cpp
vendored
4
lib/external/imgui/source/TextEditor.cpp
vendored
@@ -202,8 +202,6 @@ void TextEditor::DeleteRange(const Coordinates &aStart, const Coordinates &aEnd)
|
||||
}
|
||||
|
||||
int TextEditor::InsertTextAt(Coordinates & /* inout */ aWhere, const char *aValue) {
|
||||
assert(!mReadOnly);
|
||||
|
||||
int cindex = GetCharacterIndex(aWhere);
|
||||
int totalLines = 0;
|
||||
while (*aValue != '\0') {
|
||||
@@ -541,8 +539,6 @@ void TextEditor::RemoveLine(int aIndex) {
|
||||
}
|
||||
|
||||
TextEditor::Line &TextEditor::InsertLine(int aIndex) {
|
||||
assert(!mReadOnly);
|
||||
|
||||
auto &result = *mLines.insert(mLines.begin() + aIndex, Line());
|
||||
|
||||
ErrorMarkers etmp;
|
||||
|
||||
2
lib/external/libwolv
vendored
2
lib/external/libwolv
vendored
Submodule lib/external/libwolv updated: d5660b1d30...dfe0da877f
2
lib/external/pattern_language
vendored
2
lib/external/pattern_language
vendored
Submodule lib/external/pattern_language updated: f044561292...244da18450
@@ -306,8 +306,20 @@ namespace hex::plugin::builtin {
|
||||
if (this->m_consoleNeedsUpdate) {
|
||||
std::scoped_lock lock(this->m_logMutex);
|
||||
|
||||
this->m_consoleEditor.SetTextLines(*this->m_console);
|
||||
this->m_consoleEditor.SetCursorPosition({ int(this->m_consoleEditor.GetTextLines().size()), 0 });
|
||||
auto lineCount = this->m_consoleEditor.GetTextLines().size() - 1;
|
||||
if (this->m_console->size() < lineCount) {
|
||||
this->m_consoleEditor.SetText("");
|
||||
lineCount = 0;
|
||||
}
|
||||
|
||||
this->m_consoleEditor.SetCursorPosition({ int(lineCount + 1), 0 });
|
||||
|
||||
auto linesToAdd = this->m_console->size() - lineCount;
|
||||
for (size_t i = 0; i < linesToAdd; i += 1) {
|
||||
this->m_consoleEditor.InsertText(this->m_console->at(lineCount + i));
|
||||
this->m_consoleEditor.InsertText("\n");
|
||||
}
|
||||
|
||||
this->m_consoleNeedsUpdate = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user