ref: fa087c2d6c9ba703912ff571842c28d4cd064713
parent: d7cc1c7e69a3b403e63ada5ead6600e86a2dd40f
author: Ali Gholami Rudi <ali@rudi.ir>
date: Mon May 6 07:42:33 EDT 2013
ren: .ft with no arguments should switch to the previous font
--- a/ren.c
+++ b/ren.c
@@ -395,7 +395,7 @@
static void ren_ft(char *s)
{
- int fn = !*s || !strcmp("P", s) ? n_f0 : dev_font(s);
+ int fn = !s || !*s || !strcmp("P", s) ? n_f0 : dev_font(s);
if (fn >= 0) {
n_f0 = n_f;
n_f = fn;
@@ -404,8 +404,7 @@
void tr_ft(char **args)
{
- if (args[1])
- ren_ft(args[1]);
+ ren_ft(args[1]);
}
void tr_fp(char **args)