ref: cf343033b3077b6976585bff25c5a110dc445b49
parent: 9a38d7e0bd004edf84d475df485ce81a00aaa442
author: Ali Gholami Rudi <ali@rudi.ir>
date: Fri Sep 19 07:19:02 EDT 2014
tr: read the arguments of .tm and .sy in copy mode
--- a/tr.c
+++ b/tr.c
@@ -839,6 +839,7 @@
{
int idx0 = sbuf_len(sbuf);
int c;
+ cp_copymode(1);
c = cp_next();
while (c == ' ')
c = cp_next();
@@ -846,6 +847,7 @@
sbuf_add(sbuf, c);
c = cp_next();
}
+ cp_copymode(0);
args[0] = sbuf_buf(sbuf) + idx0;
return 1;
}