summaryrefslogtreecommitdiff
path: root/appl/cmd/ed.b
diff options
context:
space:
mode:
Diffstat (limited to 'appl/cmd/ed.b')
-rw-r--r--appl/cmd/ed.b2
1 files changed, 1 insertions, 1 deletions
diff --git a/appl/cmd/ed.b b/appl/cmd/ed.b
index e374ce4e..f0ad6310 100644
--- a/appl/cmd/ed.b
+++ b/appl/cmd/ed.b
@@ -1158,7 +1158,7 @@ global(k: int)
#
# Special case: g/.../d (avoid n^2 algorithm)
- if(globuf[0] == 'd' && globuf[1] == '\n' && globuf[2] == 0) {
+ if(globuf == "d\n") {
gdelete();
return;
}