diff options
Diffstat (limited to 'usr.bin/vi/common/gs.h')
-rw-r--r-- | usr.bin/vi/common/gs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/vi/common/gs.h b/usr.bin/vi/common/gs.h index c0674b63b6c..eca92f90ee5 100644 --- a/usr.bin/vi/common/gs.h +++ b/usr.bin/vi/common/gs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: gs.h,v 1.7 2002/02/16 21:27:57 millert Exp $ */ +/* $OpenBSD: gs.h,v 1.8 2005/10/17 19:12:16 otto Exp $ */ /*- * Copyright (c) 1993, 1994 @@ -91,7 +91,7 @@ struct _gs { * Ex command structures (EXCMD). Defined here because ex commands * exist outside of any particular screen or file. */ -#define EXCMD_RUNNING(gp) ((gp)->ecq.lh_first->clen != 0) +#define EXCMD_RUNNING(gp) (LIST_FIRST(&(gp)->ecq)->clen != 0) LIST_HEAD(_excmdh, _excmd) ecq; /* Ex command linked list. */ EXCMD excmd; /* Default ex command structure. */ char *if_name; /* Current associated file. */ |