From 1204a497afbdf4ad12d6e220a091103a8daffd4d Mon Sep 17 00:00:00 2001 From: Pete Elmore Date: Thu, 14 Sep 2017 19:20:02 -0700 Subject: Fix the X command in acme. --- appl/acme/ecmd.b | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'appl') 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; } -- cgit v1.2.3