patch 8.2.3589: failure when "term_rows" of term_start() is an unusual value

Problem:    Failure when the "term_rows" argument of term_start() is an
            unusual value.
Solution:   Limit to range of zero to 1000. (closes #9116)
This commit is contained in:
Bram Moolenaar
2021-11-13 10:27:40 +00:00
parent 606efc7df4
commit 5300be620c
4 changed files with 11 additions and 1 deletions

View File

@ -871,7 +871,8 @@ term_start({cmd} [, {options}]) *term_start()*
"term_name" name to use for the buffer name, instead
of the command name.
"term_rows" vertical size to use for the terminal,
instead of using 'termwinsize'
instead of using 'termwinsize'; valid
range is from zero to 1000
"term_cols" horizontal size to use for the terminal,
instead of using 'termwinsize'
"vertical" split the window vertically; note that