mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-02 08:18:14 +02:00
commit bash-20150710 snapshot
This commit is contained in:
@@ -1523,6 +1523,7 @@ attempt_shell_completion (text, start, end)
|
||||
|
||||
os = start;
|
||||
n = 0;
|
||||
was_assignment = 0;
|
||||
s = find_cmd_start (os);
|
||||
e = find_cmd_end (end);
|
||||
do
|
||||
@@ -1533,6 +1534,12 @@ attempt_shell_completion (text, start, end)
|
||||
s1 = s = e1;
|
||||
break;
|
||||
}
|
||||
/* Or past point if point is within an assignment statement */
|
||||
else if (was_assignment && s > rl_point)
|
||||
{
|
||||
s1 = s = e1;
|
||||
break;
|
||||
}
|
||||
/* 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
|
||||
|
||||
Reference in New Issue
Block a user