ref: 0b264c8baa04534353bfcf506f3e29123ed2b9ab
parent: f5dfd666df884b6bb79150ebdae5b4d943bdd7aa
author: Ali Gholami Rudi <[email protected]>
date: Sun Nov 6 15:17:23 EST 2016
tr: remapping overridden characters in .ochar
--- a/tr.c
+++ b/tr.c
@@ -774,7 +774,7 @@
int i;
if (!def || charread(&cs, c) < 0)
return;
- i = cdef_find(c, -1);
+ i = cdef_find(c, fn ? dev_pos(fn) : -1);
if (i < 0 && cdef_n < NCDEFS)
i = cdef_n++;
if (i >= 0) {