Mercurial > vim
diff src/terminal.c @ 33324:288bbf09d372 v9.0.1927
patch 9.0.1927: patch 1916 (fixed terminal size) not optimal
Commit: https://github.com/vim/vim/commit/ceee7a808ce82b0c6bd84e0b6fc1dfb0475c99aa
Author: Christian Brabandt <cb@256bit.org>
Date: Thu Sep 21 16:55:06 2023 +0200
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>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 21 Sep 2023 17:00:04 +0200 |
parents | 1bc6f0899715 |
children | 46d449fd4fe4 |
line wrap: on
line diff
--- a/src/terminal.c +++ b/src/terminal.c @@ -272,10 +272,10 @@ parse_termwinsize(win_T *wp, int *rows, } *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; }