aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/globals.h
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-07-19 09:12:58 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2019-07-19 15:57:19 +0200
commitaa28e070e9f953c26405d765addd9f780ede2c5a (patch)
tree0f209d5c07812b2617a2ead59ae58cf564d62c35 /src/nvim/globals.h
parent75928101f84526d92f3a38b175cdd71820526e49 (diff)
downloadrneovim-aa28e070e9f953c26405d765addd9f780ede2c5a.tar.gz
rneovim-aa28e070e9f953c26405d765addd9f780ede2c5a.tar.bz2
rneovim-aa28e070e9f953c26405d765addd9f780ede2c5a.zip
refactor: use int for Columns and Rows
Diffstat (limited to 'src/nvim/globals.h')
-rw-r--r--src/nvim/globals.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/nvim/globals.h b/src/nvim/globals.h
index 1cb2f4592a..de6f59b3f1 100644
--- a/src/nvim/globals.h
+++ b/src/nvim/globals.h
@@ -88,18 +88,15 @@ EXTERN struct nvim_stats_s {
#define NO_BUFFERS 1 // not all buffers loaded yet
// 0 not starting anymore
-/*
- * Number of Rows and Columns in the screen.
- * Must be long to be able to use them as options in option.c.
- * Note: Use default_grid.Rows and default_grid.Columns to access items in
- * default_grid.chars[]. They may have different values when the screen
- * wasn't (re)allocated yet after setting Rows or Columns (e.g., when starting
- * up).
- */
+// Number of Rows and Columns in the screen.
+// Note: Use default_grid.Rows and default_grid.Columns to access items in
+// default_grid.chars[]. 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 INIT(= DFLT_ROWS); // nr of rows in the screen
-EXTERN long Columns INIT(= DFLT_COLS); // nr of columns in the screen
+EXTERN int Rows INIT(= DFLT_ROWS); // nr of rows in the screen
+EXTERN int Columns INIT(= DFLT_COLS); // nr of columns in the screen
// We use 64-bit file functions here, if available. E.g. ftello() returns
// off_t instead of long, which helps if long is 32 bit and off_t is 64 bit.