mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:7.4.336 #2299
Problem: Setting 'history' to a big value causes out-of-memory errors. Solution: Limit the value to 10000. (Hirohito Higashi) https://github.com/vim/vim/tree/v7-4-336
This commit is contained in:
parent
119a3f2485
commit
b3f07b2468
@ -5354,6 +5354,9 @@ set_num_option (
|
||||
if (p_hi < 0) {
|
||||
errmsg = e_positive;
|
||||
p_hi = 0;
|
||||
} else if (p_hi > 10000) {
|
||||
errmsg = e_invarg;
|
||||
p_hi = 10000;
|
||||
}
|
||||
if (p_re < 0 || p_re > 2) {
|
||||
errmsg = e_invarg;
|
||||
|
@ -404,7 +404,7 @@ static int included_patches[] = {
|
||||
339,
|
||||
338,
|
||||
337,
|
||||
//336,
|
||||
336,
|
||||
335,
|
||||
334,
|
||||
//333 NA
|
||||
|
Loading…
Reference in New Issue
Block a user