feat(term): increase max scrollback to 1000000

Problem:
Cannot use `nvim_open_term()` to pipe terminal scrollback > 100000

Solution:
Increase scrollback limit to 1000000

If there's no technical consequences of doing this, can be set even
higher in the future.
This commit is contained in:
Lewis Russell
2025-07-11 10:43:05 +01:00
committed by Lewis Russell
parent 12276832ab
commit a945686444
6 changed files with 9 additions and 8 deletions

View File

@ -592,7 +592,7 @@ EXTERN int p_cdh; ///< 'cdhome'
#define ERR_BUFLEN 80
#define SB_MAX 100000 // Maximum 'scrollback' value.
#define SB_MAX 1000000 // Maximum 'scrollback' value.
#define MAX_NUMBERWIDTH 20 // used for 'numberwidth'

View File

@ -7102,7 +7102,7 @@ local options = {
desc = [=[
Maximum number of lines kept beyond the visible screen. Lines at the
top are deleted if new lines exceed this limit.
Minimum is 1, maximum is 100000.
Minimum is 1, maximum is 1000000.
Only in |terminal| buffers.
Note: Lines that are not visible and kept in scrollback are not