summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Elmore <pete@debu.gs>2017-09-14 19:20:02 -0700
committerPete Elmore <pete@debu.gs>2017-09-14 19:20:02 -0700
commit1204a497afbdf4ad12d6e220a091103a8daffd4d (patch)
tree79233e181f4464a4eeee31e22aef7e2587a9bb61
parent8823998c509302a526d8711095f664dd06997234 (diff)
Fix the X command in acme.
-rw-r--r--appl/acme/ecmd.b4
1 files changed, 2 insertions, 2 deletions
diff --git a/appl/acme/ecmd.b b/appl/acme/ecmd.b
index e05c4e47..19e38eb3 100644
--- a/appl/acme/ecmd.b
+++ b/appl/acme/ecmd.b
@@ -1192,7 +1192,7 @@ filematch(f: ref File, r: ref String): int
{
buf: string;
w: ref Window;
- match, i, dirty: int;
+ match, dirty: int;
s: Rangeset;
# compile expr first so if we get an error, we haven't allocated anything
@@ -1203,7 +1203,7 @@ filematch(f: ref File, r: ref String): int
dirty = !w.isdir && !w.isscratch && f.mod;
buf = sprint("%c%c%c %s\n", " '"[dirty],
'+', " ."[curtext!=nil && curtext.file==f], f.name);
- (match, s) = rxexecute(nil, buf, 0, i);
+ (match, s) = rxexecute(nil, buf, 0, len buf);
buf = nil;
return match;
}