aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/globals.h
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2015-07-21 23:57:11 -0400
committerJustin M. Keyes <justinkz@gmail.com>2015-07-21 23:57:11 -0400
commit8cbe5265ef22b7f320b6c0dcabd4e74b97114b0b (patch)
tree2fe1c97a6d51bde8015d4e226ead28f099a3787d /src/nvim/globals.h
parent6571c84d54a93e186bccf298bf4a3d0a45ddf28c (diff)
parenta95a5ba8398193cfe0bd3e198a013447769b64ff (diff)
downloadrneovim-8cbe5265ef22b7f320b6c0dcabd4e74b97114b0b.tar.gz
rneovim-8cbe5265ef22b7f320b6c0dcabd4e74b97114b0b.tar.bz2
rneovim-8cbe5265ef22b7f320b6c0dcabd4e74b97114b0b.zip
Merge #3048 'tui: resize terminal'
Diffstat (limited to 'src/nvim/globals.h')
-rw-r--r--src/nvim/globals.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/nvim/globals.h b/src/nvim/globals.h
index c7164ef1f1..9c4f9e3642 100644
--- a/src/nvim/globals.h
+++ b/src/nvim/globals.h
@@ -59,7 +59,7 @@
/* Values for "starting" */
#define NO_SCREEN 2 /* no screen updating yet */
#define NO_BUFFERS 1 /* not all buffers loaded yet */
-/* 0 not starting anymore */
+/* 0 not starting anymore */
/*
* Number of Rows and Columns in the screen.
@@ -68,12 +68,16 @@
* They may have different values when the screen wasn't (re)allocated yet
* after setting Rows or Columns (e.g., when starting up).
*/
+
+#define DFLT_COLS 80 /* default value for 'columns' */
+#define DFLT_ROWS 24 /* default value for 'lines' */
+
EXTERN long Rows /* nr of rows in the screen */
#ifdef DO_INIT
- = 24L
+ = DFLT_ROWS
#endif
;
-EXTERN long Columns INIT(= 80); /* nr of columns in the screen */
+EXTERN long Columns INIT(= DFLT_COLS); /* nr of columns in the screen */
/*
* The characters and attributes cached for the screen.