readline and completion fixes

This commit is contained in:
Chet Ramey
2023-04-20 11:27:36 -04:00
parent a46164736e
commit d052bd6fd9
19 changed files with 8015 additions and 7681 deletions
+4
View File
@@ -1672,6 +1672,10 @@ attempt_shell_completion (const char *text, int start, int end)
s1 = s = e1;
break;
}
else if (s > e)
{
s = s1 = start; e = e1 = end; /* reset */
}
/* Skip over assignment statements preceding a command name. If we
don't find a command name at all, we can perform command name
completion. If we find a partial command name, we should perform