ref: 48ab6e8a220310ddac3942a5605040e761f0c2ae
parent: f1c47cc83cecebd94020ed273ebe817f7153e69a
author: Ali Gholami Rudi <ali@rudi.ir>
date: Fri Sep 26 06:08:55 EDT 2014
tr: interpolate the request ending a macro For example, in: .de XX YY .YY In addition to marking the end of the macro XX, the macro YY should also be interpolated.
--- a/tr.c
+++ b/tr.c
@@ -144,7 +144,9 @@
read_regname(buf);
if ((n_cp && end[0] == buf[0] && end[1] == buf[1]) ||
!strcmp(end, buf)) {
- jmp_eol();
+ for (i = strlen(buf) - 1; i >= 0; i--)
+ cp_back((unsigned char) buf[i]);
+ cp_back('.');
break;
}
if (sbuf) {