Commit 6a5ed23
authored
ed: compatible \Z and \z in substitute
* Avoid special meaning of \Z and \z escapes when substituting text
* The special meaning of \n was already prevented in this way
* Add a missing call to get_terminated_line() in edSubstitute() that I found when testing this (the result of the s command is conditionally printed)
* It is still possible to bind a substitution to the end of a line using s/$/RE/
* Tested against GNU ed1 parent fc1a307 commit 6a5ed23
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
548 | 548 | | |
549 | 549 | | |
550 | 550 | | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
551 | 554 | | |
552 | 555 | | |
553 | 556 | | |
| |||
561 | 564 | | |
562 | 565 | | |
563 | 566 | | |
564 | | - | |
| 567 | + | |
565 | 568 | | |
566 | 569 | | |
567 | 570 | | |
| |||
0 commit comments