Windows is returning the length of the string, plus the CRLF
delimiters, whereas wineconsole is returning one less.
This commit is contained in:
parent
fac3698fc2
commit
dcba743bd1
|
@ -372,7 +372,8 @@ static void WCEL_FindPrevInHist(WCEL_Context* ctx)
|
|||
static void WCEL_Done(WCEL_Context* ctx)
|
||||
{
|
||||
WCHAR nl = '\n';
|
||||
if (!WCEL_Grow(ctx, 1)) return;
|
||||
if (!WCEL_Grow(ctx, 2)) return;
|
||||
ctx->line[ctx->len++] = '\r';
|
||||
ctx->line[ctx->len++] = '\n';
|
||||
ctx->line[ctx->len] = 0;
|
||||
WriteConsoleW(ctx->hConOut, &nl, 1, NULL, NULL);
|
||||
|
|
Loading…
Reference in New Issue