Skip to content

Commit 7d09cc6

Browse files
authored
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.
1 parent a4360df commit 7d09cc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/builtin/source/content/views/view_pattern_editor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,7 @@ namespace hex::plugin::builtin {
10791079
skipNewLine = false;
10801080
content += m_console->at(lineCount + i);
10811081
}
1082-
m_consoleEditor.SetText(content);
1082+
m_consoleEditor.InsertText(content);
10831083

10841084
m_consoleNeedsUpdate = false;
10851085
}

0 commit comments

Comments
 (0)