ref: d9794d57f3a88cf530e8e2d3c28e1723ea51b90c
parent: 3b3716caae3e4a5817633afdd6c0f8565840fceb
author: Ali Gholami Rudi <ali@rudi.ir>
date: Thu Mar 28 21:10:37 EDT 2013
ren: add .fi
--- a/ren.c
+++ b/ren.c
@@ -202,6 +202,12 @@
n_u = 0;
}
+void tr_fi(char **args)
+{
+ ren_br(0, 1);
+ n_u = 1;
+}
+
static void escarg_ren(char *d, int cmd)
{
int c, q;
--- a/tr.c
+++ b/tr.c
@@ -295,6 +295,7 @@
{"di", tr_di},
{"ds", tr_ds, mkargs_ds},
{"ev", tr_ev},
+ {"fi", tr_fi},
{"fp", tr_fp},
{"ft", tr_ft},
{"in", tr_in},
--- a/xroff.h
+++ b/xroff.h
@@ -108,6 +108,7 @@
void tr_br(char **args);
void tr_di(char **args);
void tr_ev(char **args);
+void tr_fi(char **args);
void tr_fp(char **args);
void tr_ft(char **args);
void tr_in(char **args);