summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Forsyth <charles.forsyth@gmail.com>2018-12-21 15:02:34 +0000
committerCharles Forsyth <charles.forsyth@gmail.com>2018-12-21 15:02:34 +0000
commit9765fcf68d2e5e39e39c100f798b9d00202e0d0a (patch)
treef0553d89ac0efd04d94e8054d6849774c760d2a4
parent3a4ecaa73af6efcbfa30eedde025a87dc1d20f27 (diff)
parent1204a497afbdf4ad12d6e220a091103a8daffd4d (diff)
Merged in 1337p337/inferno (pull request #22)
Fix the X command in acme. Approved-by: Charles Forsyth <charles.forsyth@gmail.com>
-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;
}