Jacek Caban : conhost: Fix check for the last history index in edit_line_find_history.
Alexandre Julliard
julliard at winehq.org
Wed Oct 14 15:37:21 CDT 2020
Module: wine
Branch: master
Commit: a7066c66a646a828c16c33e67174ea1918053eac
URL: https://source.winehq.org/git/wine.git/?a=commit;h=a7066c66a646a828c16c33e67174ea1918053eac
Author: Jacek Caban <jacek at codeweavers.com>
Date: Wed Oct 14 19:57:58 2020 +0200
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 at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/conhost/conhost.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/programs/conhost/conhost.c b/programs/conhost/conhost.c
index 3ff6363017..dc508a2fd7 100644
--- a/programs/conhost/conhost.c
+++ b/programs/conhost/conhost.c
@@ -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--;
More information about the wine-cvs
mailing list