lineedit: fix tab completion with equal sign

Fix tab completion for the path when equal sign (=) is used. For
example: dd if=/dev/ze<tab>

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Natanael Copa 2021-04-09 17:02:00 +02:00 committed by Denys Vlasenko
parent f4a9908b4c
commit 7323bca1b0

View File

@ -1071,7 +1071,7 @@ static NOINLINE int build_match_prefix(char *match_buf)
continue;
for (--i; i >= 0; i--) {
int cur = int_buf[i];
if (cur == ' ' || cur == '<' || cur == '>' || cur == '|' || cur == '&') {
if (cur == ' ' || cur == '<' || cur == '>' || cur == '|' || cur == '&' || cur == '=') {
remove_chunk(int_buf, 0, i + 1);
break;
}