summaryrefslogtreecommitdiff
path: root/filecomplete.c
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2011-03-31 18:23:38 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2011-03-31 18:23:38 +0000
commit04f67c69773abd69e8de67b4bc0b324c4cac4a53 (patch)
tree3e558754bd9f27404813204499c92e766f7ca1d0 /filecomplete.c
parent75d35a370343c1fb6f274d4631225321e727287f (diff)
Notes
Diffstat (limited to 'filecomplete.c')
-rw-r--r--filecomplete.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/filecomplete.c b/filecomplete.c
index e0738a7e52b2..271e84a64e1a 100644
--- a/filecomplete.c
+++ b/filecomplete.c
@@ -1,4 +1,4 @@
-/* $NetBSD: filecomplete.c,v 1.7 2005/06/11 18:18:59 christos Exp $ */
+/* $NetBSD: filecomplete.c,v 1.8 2005/08/03 13:41:38 christos Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
#include "config.h"
#if !defined(lint) && !defined(SCCSID)
-__RCSID("$NetBSD: filecomplete.c,v 1.7 2005/06/11 18:18:59 christos Exp $");
+__RCSID("$NetBSD: filecomplete.c,v 1.8 2005/08/03 13:41:38 christos Exp $");
#endif /* not lint && not SCCSID */
#include <sys/types.h>
@@ -438,7 +438,7 @@ fn_complete(EditLine *el,
} else
matches = 0;
if (!attempted_completion_function ||
- (over != NULL && *over && !matches))
+ (over != NULL && !*over && !matches))
matches = completion_matches(temp, complet_func);
if (over != NULL)