summaryrefslogtreecommitdiffstats
path: root/bin/ed
diff options
context:
space:
mode:
authorsjg <sjg@FreeBSD.org>2013-09-05 20:18:59 +0000
committersjg <sjg@FreeBSD.org>2013-09-05 20:18:59 +0000
commit62bb1062226d3ce6a2350808256a25508978352d (patch)
tree22b131dceb13c3df96da594fbaadb693504797c7 /bin/ed
parent72ab90509b3a51ab361bf710338f2ef44a4e360d (diff)
parent04932445481c2cb89ff69a83b961bdef3d64757e (diff)
downloadFreeBSD-src-62bb1062226d3ce6a2350808256a25508978352d.zip
FreeBSD-src-62bb1062226d3ce6a2350808256a25508978352d.tar.gz
Merge from head
Diffstat (limited to 'bin/ed')
-rw-r--r--bin/ed/ed.14
-rw-r--r--bin/ed/re.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/bin/ed/ed.1 b/bin/ed/ed.1
index dbfb3dd..8342645 100644
--- a/bin/ed/ed.1
+++ b/bin/ed/ed.1
@@ -914,9 +914,9 @@ that line.
.El
.Sh FILES
.Bl -tag -width /tmp/ed.* -compact
-.It /tmp/ed.*
+.It Pa /tmp/ed.*
buffer file
-.It ed.hup
+.It Pa ed.hup
the file to which
.Nm
attempts to write the buffer if the terminal hangs up
diff --git a/bin/ed/re.c b/bin/ed/re.c
index 08a330d..03a3436 100644
--- a/bin/ed/re.c
+++ b/bin/ed/re.c
@@ -89,7 +89,7 @@ extract_pattern(int delimiter)
default:
break;
case '[':
- if ((nd = parse_char_class(++nd)) == NULL) {
+ if ((nd = parse_char_class(nd + 1)) == NULL) {
errmsg = "unbalanced brackets ([])";
return NULL;
}
OpenPOWER on IntegriCloud