st
simple terminal
git clone https://9o.is/git/st.git
commit 855185c78032f97cc42387a7183377fcedc0897c parent 5db21706be6519a624c38e925c43628394e7a065 Author: noname <noname@inventati.org> Date: Mon, 28 Apr 2014 02:41:17 +0400 Simplify xunloadfonts. Diffstat:
| M | st.c | | | 8 | ++------ |
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/st.c b/st.c @@ -2993,13 +2993,9 @@ xunloadfont(Font *f) { void xunloadfonts(void) { - int i; - /* Free the loaded fonts in the font cache. */ - for(i = 0; i < frclen; i++) { - XftFontClose(xw.dpy, frc[i].font); - } - frclen = 0; + while(frclen > 0) + XftFontClose(xw.dpy, frc[--frclen].font); xunloadfont(&dc.font); xunloadfont(&dc.bfont);