diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-29 11:48:55 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:16 -0300 |
| commit | 7a818260ff0c7fc9e2effa634cdf947fde48e043 (patch) | |
| tree | 7a5df65de94ed486de9ba7927f1e62e757613c0d /docs/tags.md | |
| parent | c3c3ef27ede2f69ef4f8c6acb10808f02ee46bb2 (diff) | |
| download | pardes-7a818260ff0c7fc9e2effa634cdf947fde48e043.tar.gz pardes-7a818260ff0c7fc9e2effa634cdf947fde48e043.zip | |
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 <[email protected]>
Diffstat (limited to 'docs/tags.md')
| -rw-r--r-- | docs/tags.md | 4 |
1 files changed, 3 insertions, 1 deletions
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 |
