X-Git-Url: https://jasonwoof.com/gitweb/?p=st.git;a=blobdiff_plain;f=st.c;h=c90bed1746e84104d77497f6006d772d4ecc0e2c;hp=2b4d52cf09bdaf81c5c3803daf579f879387122a;hb=63a07eb19c908ac86936b6f9857738107326d27a;hpb=dc8c5c82aa14e75305bd5b0e42b4f8bba45702a8 diff --git a/st.c b/st.c index 2b4d52c..c90bed1 100644 --- a/st.c +++ b/st.c @@ -3064,10 +3064,10 @@ xunloadfonts(void) { xunloadfont(&dc.ibfont); } - void xzoom(const Arg *arg) { Arg larg; + larg.i = usedfontsize + arg->i; xzoomabs(&larg); } @@ -3084,6 +3084,7 @@ xzoomabs(const Arg *arg) { void xzoomreset(const Arg *arg) { Arg larg; + if(defaultfontsize > 0) { larg.i = defaultfontsize; xzoomabs(&larg);