conhost: Fix check for the last history index in edit_line_find_history.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50000 Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d3f09b862a
commit
a7066c66a6
|
@ -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--;
|
||||
|
|
Loading…
Reference in New Issue