From c34e5c76fb923f70cb870ff723d73c5979c17728 Mon Sep 17 00:00:00 2001 From: roy Date: Fri, 26 Sep 2014 15:43:36 +0000 Subject: [PATCH] Revert prior patch as it breaks `vis -l` as pointed out by apb. --- lib/libc/gen/unvis.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/libc/gen/unvis.c b/lib/libc/gen/unvis.c index 81d80f21c44e..30fad8154d75 100644 --- a/lib/libc/gen/unvis.c +++ b/lib/libc/gen/unvis.c @@ -1,4 +1,4 @@ -/* $NetBSD: unvis.c,v 1.43 2014/09/26 13:03:22 roy Exp $ */ +/* $NetBSD: unvis.c,v 1.44 2014/09/26 15:43:36 roy Exp $ */ /*- * Copyright (c) 1989, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)unvis.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: unvis.c,v 1.43 2014/09/26 13:03:22 roy Exp $"); +__RCSID("$NetBSD: unvis.c,v 1.44 2014/09/26 15:43:36 roy Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -307,6 +307,12 @@ unvis(char *cp, int c, int *astate, int flag) */ *astate = SS(0, S_GROUND); return UNVIS_NOCHAR; + case '$': + /* + * hidden marker + */ + *astate = SS(0, S_GROUND); + return UNVIS_NOCHAR; default: if (isgraph(c)) { *cp = c;