missed setting TAG_IS_LINKED in a special case in my previous commit.
Bug reported by Brad Harder, thanks!
This commit is contained in:
parent
db25848c17
commit
f90e2756f0
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ex_cscope.c,v 1.6 2014/08/22 21:28:20 aymeric Exp $ */
|
||||
/* $NetBSD: ex_cscope.c,v 1.7 2014/08/26 15:19:38 aymeric Exp $ */
|
||||
/*-
|
||||
* Copyright (c) 1994, 1996
|
||||
* Rob Mayoff. All rights reserved.
|
||||
|
@ -16,7 +16,7 @@
|
|||
static const char sccsid[] = "Id: ex_cscope.c,v 10.21 2003/11/05 17:11:54 skimo Exp (Berkeley) Date: 2003/11/05 17:11:54 ";
|
||||
#endif /* not lint */
|
||||
#else
|
||||
__RCSID("$NetBSD: ex_cscope.c,v 1.6 2014/08/22 21:28:20 aymeric Exp $");
|
||||
__RCSID("$NetBSD: ex_cscope.c,v 1.7 2014/08/26 15:19:38 aymeric Exp $");
|
||||
#endif
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -542,6 +542,7 @@ cscope_find(SCR *sp, EXCMD *cmdp, const CHAR_T *pattern)
|
|||
*/
|
||||
if (TAILQ_EMPTY(&exp->tq)) {
|
||||
TAILQ_INSERT_HEAD(&exp->tq, rtqp, q);
|
||||
F_SET(rtqp, TAG_IS_LINKED);
|
||||
} else {
|
||||
free(rtqp);
|
||||
rtqp = TAILQ_FIRST(&exp->tq);
|
||||
|
|
Loading…
Reference in New Issue