mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Fixed text box losing the last letter
This commit is contained in:
@@ -502,7 +502,7 @@ namespace GlitchyEditor.EditWindows
|
|||||||
|
|
||||||
text?.EnsureNullTerminator();
|
text?.EnsureNullTerminator();
|
||||||
|
|
||||||
if (ImGui.InputTextMultiline("##text", text.Ptr, (uint64)text.Length, .Zero, .CallbackResize, => InputTextCallback, Internal.UnsafeCastToPtr(text)))
|
if (ImGui.InputTextMultiline("##text", text.CStr(), (uint64)(text.Length + 1), .Zero, .CallbackResize, => InputTextCallback, Internal.UnsafeCastToPtr(text)))
|
||||||
{
|
{
|
||||||
// To deleting text, ImGui simply puts a null char after the remaining text.
|
// To deleting text, ImGui simply puts a null char after the remaining text.
|
||||||
// Search for null char and set the length of the string accordingly.
|
// Search for null char and set the length of the string accordingly.
|
||||||
|
|||||||
Reference in New Issue
Block a user