projects
/
suckless
/
st.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f5f770
)
Use MAX macro where possible.
author
noname
<noname@inventati.org>
Thu, 9 Apr 2015 20:04:43 +0000
(20:04 +0000)
committer
Roberto E. Vargas Caballero
<k0ga@shike2.com>
Fri, 10 Apr 2015 21:34:06 +0000
(23:34 +0200)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index 0065240f40705cf2a6ad1b72f5fde256f4b748cc..a7064b1e87072f0f034f64a320019dae594f1ed0 100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-4072,7
+4072,7
@@
main(int argc, char *argv[]) {
run:
setlocale(LC_CTYPE, "");
XSetLocaleModifiers("");
- tnew(
cols? cols : 1, rows? rows : 1
);
+ tnew(
MAX(cols, 1), MAX(rows, 1)
);
xinit();
selinit();
run();