ed

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

commit f7a20a064e15675bd5151ce6c5eee64d520e151d
parent 1778577cd71cc38d122376684360a0ce1520d402
Author: Byron Torres <b@torresjrjr.com>
Date:   Sun,  7 Jan 2024 01:24:01 +0000

progress

Diffstat:
Mcommand.ha | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/command.ha b/command.ha @@ -338,9 +338,6 @@ fn cmd_mark(s: *Session, cmd: *Command) (void | Error) = { const n = get_linenum(cmd.linenums, s.buf.cursor); assert_nonzero(s, n)?; - // TODO: this should use ".suffix", not ".arg", and parse() should - // handle this - // TODO: check len, etc... const mark = strings::torunes(cmd.arg1)[0]; debug("cmd_mark(): mark={}", mark); @@ -522,6 +519,7 @@ fn cmd_substitute(s: *Session, cmd: *Command) (void | Error) = { const regex = regex::compile(cmd.arg1)?; defer regex::finish(&regex); const replacement = cmd.arg2; + const flags = cmd.arg3; // TODO: parse and use substitution flags `cmd.arg3` // use regex::replace ? // TODO: implement '&', '%'