1
0
forked from aniani/vim

patch 9.0.1927: patch 1916 (fixed terminal size) not optimal

Problem:  patch 1916 (fixed terminal size) not optimal
Solution: Add defines to make it easier changeable later

Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christian Brabandt
2023-09-21 16:55:06 +02:00
parent 696270bcae
commit ceee7a808c
4 changed files with 14 additions and 8 deletions

View File

@@ -272,10 +272,10 @@ parse_termwinsize(win_T *wp, int *rows, int *cols)
}
*rows = atoi((char *)wp->w_p_tws);
*cols = atoi((char *)p + 1);
if (*rows > 1000)
*rows = 1000;
if (*cols > 1000)
*cols = 1000;
if (*rows > VTERM_MAX_ROWS)
*rows = VTERM_MAX_ROWS;
if (*cols > VTERM_MAX_COLS)
*cols = VTERM_MAX_COLS;
return minsize;
}