0
0
mirror of https://github.com/vim/vim.git synced 2025-10-12 06:44:06 -04:00

patch 9.1.0808: Terminal scrollback doesn't shrink when decreasing 'termwinscroll'

Problem:  Terminal scrollback doesn't shrink when reducing
          'termwinscroll'
Solution: Check if option value was decreased (Milly).

closes: #15904

Signed-off-by: Milly <milly.ca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Milly
2024-10-22 23:17:45 +02:00
committed by Christian Brabandt
parent 3e5bbb8e11
commit 6d5f4a0bed
8 changed files with 45 additions and 2 deletions

View File

@@ -2563,7 +2563,7 @@ static struct vimoption options[] =
SCTX_INIT},
{"termwinscroll", "twsl", P_NUM|P_VI_DEF|P_VIM|P_RBUF,
#ifdef FEAT_TERMINAL
(char_u *)&p_twsl, PV_TWSL, NULL, NULL,
(char_u *)&p_twsl, PV_TWSL, did_set_termwinscroll, NULL,
{(char_u *)10000L, (char_u *)10000L}
#else
(char_u *)NULL, PV_NONE, NULL, NULL,