diff --git a/src/dlangui/platforms/ansi_console/dconsole.d b/src/dlangui/platforms/ansi_console/dconsole.d index 5d83fb98..7023c044 100644 --- a/src/dlangui/platforms/ansi_console/dconsole.d +++ b/src/dlangui/platforms/ansi_console/dconsole.d @@ -280,7 +280,7 @@ class Console { break; } if (readBufPos > 0 && isSequenceCompleted()) { - string s = readBuf[0 .. readBufPos].dup; + string s = readBuf[0 .. readBufPos].idup; readBufPos = 0; return s; }