Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libedit Fix reversed test; from Gerry Swislow



details:   https://anonhg.NetBSD.org/src/rev/13a37b932c71
branches:  trunk
changeset: 583375:13a37b932c71
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Aug 03 13:41:38 2005 +0000

description:
Fix reversed test; from Gerry Swislow

diffstat:

 lib/libedit/filecomplete.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 26e9922794bd -r 13a37b932c71 lib/libedit/filecomplete.c
--- a/lib/libedit/filecomplete.c        Wed Aug 03 06:25:11 2005 +0000
+++ b/lib/libedit/filecomplete.c        Wed Aug 03 13:41:38 2005 +0000
@@ -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 @@
        } else
                matches = 0;
        if (!attempted_completion_function || 
-           (over != NULL && *over && !matches))
+           (over != NULL && !*over && !matches))
                matches = completion_matches(temp, complet_func);
 
        if (over != NULL)



Home | Main Index | Thread Index | Old Index