mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-06 11:50:49 +02:00
commit bash-20151113 snapshot
This commit is contained in:
+3
-1
@@ -198,12 +198,14 @@ rl_tilde_expand (ignore, key)
|
||||
xfree (homedir);
|
||||
return (0);
|
||||
}
|
||||
else if (rl_line_buffer[start] != '~')
|
||||
else if (start >= 0 && rl_line_buffer[start] != '~')
|
||||
{
|
||||
for (; !whitespace (rl_line_buffer[start]) && start >= 0; start--)
|
||||
;
|
||||
start++;
|
||||
}
|
||||
else if (start < 0)
|
||||
start = 0;
|
||||
|
||||
end = start;
|
||||
do
|
||||
|
||||
Reference in New Issue
Block a user