From 0fc457933952d417c626798489afc14d06a8cc28 Mon Sep 17 00:00:00 2001
From: Andreas Mohr <and@gmx.li>
Date: Fri, 4 Dec 2020 12:05:15 +0000
Subject: [PATCH] (input.c) preserve input state after history dropdown abort
By default input value is marked to replace at whole until first input
but history dropdown abort will alter this state
fix #4152
Signed-off-by: Andreas Mohr <and@gmx.li>
---
lib/widget/input.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/lib/widget/input.c b/lib/widget/input.c
index b5cec7e6b..9293390f6 100644
a
|
b
|
input_handle_char (WInput * in, int key) |
1153 | 1153 | input_complete_free (in); |
1154 | 1154 | input_execute_cmd (in, command); |
1155 | 1155 | v = MSG_HANDLED; |
1156 | | if (in->first) |
1157 | | input_update (in, TRUE); /* needed to clear in->first */ |
1158 | 1156 | } |
1159 | 1157 | |
1160 | | input_update (in, TRUE); |
| 1158 | input_update (in, FALSE); |
1161 | 1159 | return v; |
1162 | 1160 | } |
1163 | 1161 | |