commit bash-20040928 snapshot

This commit is contained in:
Chet Ramey
2011-12-03 13:37:34 -05:00
parent 43df7bbb63
commit 7a2f2783f4
18 changed files with 733 additions and 81 deletions
+9 -1
View File
@@ -1543,7 +1543,7 @@ append_to_match (text, delimiter, quote_char, nontrivial_match)
: stat (filename, &finfo);
if (s == 0 && S_ISDIR (finfo.st_mode))
{
if (_rl_complete_mark_directories && rl_completion_suppress_append == 0)
if (_rl_complete_mark_directories /* && rl_completion_suppress_append == 0 */)
{
/* This is clumsy. Avoid putting in a double slash if point
is at the end of the line and the previous character is a
@@ -2178,9 +2178,17 @@ rl_menu_complete (count, ignore)
return (0);
}
#if 0
match_list_index = (match_list_index + count) % match_list_size;
if (match_list_index < 0)
match_list_index += match_list_size;
#else
match_list_index += count;
if (match_list_index < 0)
match_list_index += match_list_size;
else
match_list_index %= match_list_size;
#endif
if (match_list_index == 0 && match_list_size > 1)
{