From 7a818260ff0c7fc9e2effa634cdf947fde48e043 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 29 Sep 2026 11:48:55 -0300 Subject: The docs say an Edit loop that finds nothing succeeds silently, as sam's does Edit ,x/zzz/c/bar/ with no match changed nothing and succeeded, which read as a failure next to s's no substitution; sam does the same, so it is kept and said. Co-Authored-By: Claude Opus 5.5 --- docs/tags.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/tags.md b/docs/tags.md index d79c64b5..c2d92b9a 100644 --- a/docs/tags.md +++ b/docs/tags.md @@ -78,7 +78,9 @@ sequence with a warning, pardes refuses the Edit. In `s`, `&` in the replacement is the matched text (`\&` a plain `&`); in `c`, `a` and `i` an `&` is only an `&`, as in sam. A pattern that finds nothing says so with the pattern (`no match for regexp /nomatch/`), and an `s` on an empty dot says -`no substitution: dot is empty`. +`no substitution: dot is empty`. A loop that finds nothing is no error, as +in sam: `Edit ,x/zzz/c/bar/` with no `zzz` changes nothing and succeeds, +silent, where `,s/zzz/bar/` says `no substitution`. `Undo` and `Redo` are acme's: typed or clicked in a pane's tag, or written to its `ctl`, they step the body back and forward through its edits, as the -- cgit v1.3