Commit a7066c66 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

conhost: Fix check for the last history index in edit_line_find_history.

parent d3f09b86
......@@ -659,7 +659,7 @@ static void edit_line_find_in_history( struct console *console )
unsigned int len, oldoffset;
WCHAR *line;
if (ctx->history_index && ctx->history_index == console->history_index + 1)
if (ctx->history_index && ctx->history_index == console->history_index)
{
start_pos--;
ctx->history_index--;
......
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