[hackers] [st][PATCH] Move column and row defaults into the header

From: fpqc ?? <harry.gindi_AT_live.com>
Date: Wed, 14 Dec 2016 06:51:27 +0000

---
 config.def.h | 7 +++++++
 st.c         | 2 --
 2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/config.def.h b/config.def.h
index 32d107d..d379f7f 100644
--- a/config.def.h
+++ b/config.def.h
_AT_@ -131,6 +131,13 @@ static unsigned int defaultrcs = 257;
 static unsigned int cursorshape = 2;
 
 /*
+ * Default columns and rows
+ */
+
+static unsigned int cols = 80;
+static unsigned int rows = 24;
+
+/*
  * Default colour and shape of the mouse cursor
  */
 static unsigned int mouseshape = XC_xterm;
diff --git a/st.c b/st.c
index d6fe58a..fbcd9e0 100644
--- a/st.c
+++ b/st.c
_AT_@ -4471,8 +4471,6 @@ usage(void)
 int
 main(int argc, char *argv[])
 {
-	uint cols = 80, rows = 24;
-
 	xw.l = xw.t = 0;
 	xw.isfixed = False;
 	xw.cursor = cursorshape;
-- 
2.10.2
Received on Wed Dec 14 2016 - 07:51:27 CET

This archive was generated by hypermail 2.3.0 : Wed Dec 14 2016 - 08:00:19 CET