diff options
-rw-r--r-- | cmd-generic.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd-generic.c b/cmd-generic.c index 30fed7e1..bda4c415 100644 --- a/cmd-generic.c +++ b/cmd-generic.c @@ -1,4 +1,4 @@ -/* $Id: cmd-generic.c,v 1.22 2009-01-18 14:40:48 nicm Exp $ */ +/* $Id: cmd-generic.c,v 1.23 2009-01-23 20:20:23 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net> @@ -83,6 +83,8 @@ cmd_print_flags(char *buf, size_t len, size_t off, int flags) if ((flags & (CMD_DFLAG|CMD_GFLAG|CMD_KFLAG|CMD_UFLAG)) == 0) return (0); off += xsnprintf(buf + off, len - off, " -"); + if (off < len && flags & CMD_AFLAG) + off += xsnprintf(buf + off, len - off, "a"); if (off < len && flags & CMD_DFLAG) off += xsnprintf(buf + off, len - off, "d"); if (off < len && flags & CMD_GFLAG) |