diff --git a/ChangeLog b/ChangeLog index f6dbc3ee..63ce0f6e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,8 @@ home directories, could be erroneously treated as users' home directories (e.g. "~d/" would be treated as "~daemon/"). (DLR, found by Justin Fletcher) + * files.c (input_tab): Don't bother checking if num_matches is + less than zero, as it's a size_t and hence unsigned. (DLR) 2007-04-16 David Lawrence Ramsey diff --git a/src/files.c b/src/files.c index bde29e11..d4c5995e 100644 --- a/src/files.c +++ b/src/files.c @@ -2254,7 +2254,7 @@ char *input_tab(char *buf, bool allow_files, size_t *place, bool matches = cwd_tab_completion(buf, allow_files, &num_matches, *place); - if (num_matches <= 0) + if (num_matches == 0) beep(); else { size_t match, common_len = 0;