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:
paxcut
2025-03-11 06:56:05 -07:00
committed by GitHub
parent a4360dfe76
commit 7d09cc6d25

View File

@@ -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;
}