ed

[hare] The standard editor
Log | Files | Refs | README | LICENSE

commit ce7729e781922c34e39533ecbc2e37aefb76dcf4
parent 48f10f36de278a73cccc71e2a5b4faee49761b0a
Author: Byron Torres <b@torresjrjr.com>
Date:   Tue, 25 Apr 2023 18:03:56 +0100

update for regex::result_freeall

Diffstat:
Mcommand.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/command.ha b/command.ha @@ -437,7 +437,7 @@ fn cmd_substitute(s: *session, cmd: *command) (void | error) = { for (let i = a; i <= b; i += 1) { const old = s.buf.lines[i].text; const results = regex::findall(&re, old); - defer regex::free_matches(results); + defer regex::result_freeall(results); if (len(results) == 0) { continue;