]> git.armaanb.net Git - st.git/commitdiff
Move column and row default numbers into config.h
authorfpqc <harry.gindi@live.com>
Wed, 14 Dec 2016 06:51:27 +0000 (06:51 +0000)
committerQuentin Rameau <quinq@fifth.space>
Fri, 16 Dec 2016 09:50:23 +0000 (10:50 +0100)
config.def.h
st.c

index 32d107dc94347f75a67af3ea2091311ca38597c8..a719e368bd3f620f0e16cc71c55df6d647841132 100644 (file)
@@ -130,6 +130,13 @@ static unsigned int defaultrcs = 257;
  */
 static unsigned int cursorshape = 2;
 
+/*
+ * Default columns and rows numbers
+ */
+
+static unsigned int cols = 80;
+static unsigned int rows = 24;
+
 /*
  * Default colour and shape of the mouse cursor
  */
diff --git a/st.c b/st.c
index d6fe58a2f3ba8a947b97dbb10f15213f3095fd29..fbcd9e02154fe586066648bdd3bafdff06820693 100644 (file)
--- a/st.c
+++ b/st.c
@@ -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;