commit bash-20151113 snapshot

This commit is contained in:
Chet Ramey
2015-12-01 11:28:06 -05:00
parent f542be5d52
commit f9b024c839
15 changed files with 148 additions and 49 deletions
+3 -1
View File
@@ -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