shithub: neatroff

Download patch

ref: 33f2e264bdcd96712e88e7c6e0a913e168ab32fb
parent: 057a087d28d23a25c3fad7f3b8dce1d376da808e
author: Ali Gholami Rudi <ali@rudi.ir>
date: Wed May 15 19:47:37 EDT 2013

dev: match temporary font name after other mounted fonts in .ft

--- a/dev.c
+++ b/dev.c
@@ -170,9 +170,11 @@
 		}
 		return num;
 	}
-	for (i = 0; i < fn_n; i++)
+	for (i = 1; i < fn_n; i++)
 		if (!strcmp(fn_name[i], id))
 			return i;
+	if (!strcmp(fn_name[0], id))
+		return 0;
 	return dev_mnt(0, id, id);
 }