Commit 9198ca27 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

conhost: Correctly recompute start of edit line on ReadConsole.

parent 731a9680
......@@ -1426,8 +1426,8 @@ static NTSTATUS read_console( struct console *console, unsigned int ioctl, size_
if (offset > ctx->home_x)
{
int deltay;
offset -= ctx->home_x;
deltay = offset / console->active->width;
offset -= ctx->home_x + 1;
deltay = offset / console->active->width + 1;
if (ctx->home_y >= deltay)
ctx->home_y -= deltay;
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment