mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Console editor not showing all output (#2133)
This change is to fix a bug reported in discord by berkus and Naheulf about the console missing output lines. The bug was caused by using SetText which replaces the existing text with the text in the argument. To fix it use InsertText which puts the text at the current cursor position that was already set to the end of the current contents. Code was tested with pattern used to reproduce the bug and seemed to work when evaluated repeatedly.
This commit is contained in:
@@ -1079,7 +1079,7 @@ namespace hex::plugin::builtin {
|
||||
skipNewLine = false;
|
||||
content += m_console->at(lineCount + i);
|
||||
}
|
||||
m_consoleEditor.SetText(content);
|
||||
m_consoleEditor.InsertText(content);
|
||||
|
||||
m_consoleNeedsUpdate = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user