options,tui: don't hardcode default terminal size

also, include some checks.
This commit is contained in:
Felipe Morales
2015-07-20 21:30:42 -03:00
committed by Justin M. Keyes
parent 5732340c20
commit a95a5ba839
3 changed files with 16 additions and 9 deletions

View File

@@ -537,7 +537,7 @@ static vimoption_T
{(char_u *)"", (char_u *)0L} SCRIPTID_INIT},
{"columns", "co", P_NUM|P_NODEFAULT|P_NO_MKRC|P_VI_DEF|P_RCLR,
(char_u *)&Columns, PV_NONE,
{(char_u *)80L, (char_u *)0L} SCRIPTID_INIT},
{(char_u *)DFLT_COLS, (char_u *)0L} SCRIPTID_INIT},
{"comments", "com", P_STRING|P_ALLOCED|P_VI_DEF|P_COMMA|P_NODUP|
P_CURSWANT,
(char_u *)&p_com, PV_COM,
@@ -1025,7 +1025,7 @@ static vimoption_T
{"lines", NULL, P_NUM|P_NODEFAULT|P_NO_MKRC|P_VI_DEF|P_RCLR,
(char_u *)&Rows, PV_NONE,
{
(char_u *)24L,
(char_u *)DFLT_ROWS,
(char_u *)0L
} SCRIPTID_INIT},
{"linespace", "lsp", P_NUM|P_VI_DEF|P_RCLR,