aboutsummaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2012-12-29 16:24:33 +0100
committerChristoph Lohmann <20h@r-36.net>2012-12-29 16:24:33 +0100
commit08e06ef079e5190c7f219c7e50044745c57cea86 (patch)
treeda576f8e524c9cff73d66e8c61e09d41f691807e /st.c
parentaddc84834506e24387c1fb70b5d33b3f2ba55b66 (diff)
downloadst-08e06ef079e5190c7f219c7e50044745c57cea86.tar.gz
Fixing the font unloading in case of zoom.
Diffstat (limited to 'st.c')
-rw-r--r--st.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/st.c b/st.c
index cc8a22a..6dcf0c7 100644
--- a/st.c
+++ b/st.c
@@ -2406,7 +2406,7 @@ xunloadfonts(void)
* from the frccur.
*/
for (i = 0, ip = frccur; i < frclen; i++, ip--) {
- if (ip <= 0)
+ if (ip < 0)
ip = LEN(frc) - 1;
XftFontClose(xw.dpy, frc[ip].font);
}