-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Why 10 000? I set it to 65 536 and it runs fine (except for slow startup due to 
me keeping history not in viminfo (when keeping history and other things in 
viminfo only you are limited to one vim instance: with two or more vim instance 
that exited last wins and other instances' histories are thrown away)).

On June 25, 2014 1:49:14 PM GMT+03:00, Bram Moolenaar <[email protected]> 
wrote:
>
>Patch 7.4.336
>Problem:    Setting 'history' to a big value causes out-of-memory
>errors.
>Solution:   Limit the value to 10000. (Hirohito Higashi)
>Files:     runtime/doc/options.txt, src/option.c
>
>
>*** ../vim-7.4.335/runtime/doc/options.txt     2014-05-28
>21:40:47.088329130 +0200
>--- runtime/doc/options.txt    2014-06-25 11:44:16.985950668 +0200
>***************
>*** 3920,3931 ****
>       NOTE: This option is reset when 'compatible' is set.
>
>                                               *'history'* *'hi'*
>! 'history' 'hi'               number  (Vim default: 20, Vi default: 0)
>                       global
>                       {not in Vi}
>       A history of ":" commands, and a history of previous search patterns
>!      are remembered.  This option decides how many entries may be stored
>in
>       each of these histories (see |cmdline-editing|).
>       NOTE: This option is set to the Vi default value when 'compatible' is
>       set and to the Vim default value when 'compatible' is reset.
>
>--- 3920,3932 ----
>       NOTE: This option is reset when 'compatible' is set.
>
>                                               *'history'* *'hi'*
>! 'history' 'hi'               number  (Vim default: 50, Vi default: 0)
>                       global
>                       {not in Vi}
>       A history of ":" commands, and a history of previous search patterns
>!      is remembered.  This option decides how many entries may be stored
>in
>       each of these histories (see |cmdline-editing|).
>+      The maximum value is 10000.
>       NOTE: This option is set to the Vi default value when 'compatible' is
>       set and to the Vim default value when 'compatible' is reset.
>
>*** ../vim-7.4.335/src/option.c        2014-05-13 12:16:44.037555110 +0200
>--- src/option.c       2014-06-25 11:44:48.349951855 +0200
>***************
>*** 1392,1398 ****
>                           SCRIPTID_INIT},
>      {"history",          "hi",   P_NUM|P_VIM,
>                           (char_u *)&p_hi, PV_NONE,
>!                          {(char_u *)0L, (char_u *)20L} SCRIPTID_INIT},
>      {"hkmap",            "hk",   P_BOOL|P_VI_DEF|P_VIM,
>  #ifdef FEAT_RIGHTLEFT
>                           (char_u *)&p_hkmap, PV_NONE,
>--- 1392,1398 ----
>                           SCRIPTID_INIT},
>      {"history",          "hi",   P_NUM|P_VIM,
>                           (char_u *)&p_hi, PV_NONE,
>!                          {(char_u *)0L, (char_u *)50L} SCRIPTID_INIT},
>      {"hkmap",            "hk",   P_BOOL|P_VI_DEF|P_VIM,
>  #ifdef FEAT_RIGHTLEFT
>                           (char_u *)&p_hkmap, PV_NONE,
>***************
>*** 8595,8600 ****
>--- 8595,8605 ----
>       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;
>*** ../vim-7.4.335/src/version.c       2014-06-18 21:38:12.216418355 +0200
>--- src/version.c      2014-06-25 11:45:08.141952604 +0200
>***************
>*** 736,737 ****
>--- 736,739 ----
>  {   /* Add new patch number below this line */
>+ /**/
>+     336,
>  /**/
>
>--
>ARTHUR:    Well, it doesn't matter.  Will you go and tell your master
>that
>           Arthur from the Court of Camelot is here.
>GUARD #1:  Listen, in order to maintain air-speed velocity, a swallow
>           needs to beat its wings 43 times every second, right?
>ARTHUR:    Please!
>                            The Quest for the Holy Grail (Monty Python)
>
>/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net
>\\\
>///        sponsor Vim, vote for features --
>http://www.Vim.org/sponsor/ \\\
>\\\  an exciting new programming language -- http://www.Zimbu.org
> ///
>\\\            help me help AIDS victims -- http://ICCF-Holland.org
>///
>
>--
>--
>You received this message from the "vim_dev" maillist.
>Do not top-post! Type your reply below the text you are replying to.
>For more information, visit http://www.vim.org/maillist.php
>
>---
>You received this message because you are subscribed to the Google
>Groups "vim_dev" group.
>To unsubscribe from this group and stop receiving emails from it, send
>an email to [email protected].
>For more options, visit https://groups.google.com/d/optout.
-----BEGIN PGP SIGNATURE-----
Version: APG v1.1.1

iQI1BAEBCgAfBQJTqrPOGBxaeVggPHp5eC52aW1AZ21haWwuY29tPgAKCRCf3UKj
HhHSviYGD/4vzxu40YuMR6DoNbfW2C2q6m/W3ZMWVb3mpUJt3av3RXNrQpUVzbDR
S63LfcgONnF3jKebOZ6evI5+9v/BazJcDrxZf1vapujhgil8U7NLzzp7WzOmy4X7
Nu6kGojhaHW4pX5G+FdqZyLZdT5YRrPj6wBpy5eDCdi25dlfigBArO44ZjpMLIcA
De71wn3Bt9QC/AYVmn2W4p8xTEyD/Ydec/vfHc+CB1WmlLXC5eJYDbTiMLy4H1l+
We09rr/+NCZM3ImHVSkRwxV+WpGJ5UZoCbLwhppT7t8mZa0hCNBasl6SNYicExMT
/ssVdUu2+LJKBBiwcEmebZCu15L+idb5BLSLtAomPCmgUPfoLSxryvi+vyTpPge5
838Xhxd6R+qwiDFSnm8puV7vB1AWfFA2lrg1SFHMj5wKdw8rZDKFqOZBgGiPfjvf
n5mV21QY9BTa1IHGWwSrNq1UVBqBEWL1WeIA36KdzMHDV2nJrA5Xa33FwLd5vJfm
Hmm84vlnH3VS5AhufKwdU5dDMpElt49+SnpnV1xNK4TfylNRHTTLZj0rqnY1gDMt
q8gbKO8J8J6XrvMpzfEEFxlhwV0oYIVWvNxtWMiGoh7a5YSFc6E+wkNO06z7Md6v
Cienc2bq6S9tHak3Tn3racQMsneai1bfCkinJObgeY5inKdwj+LSpg==
=2P7u
-----END PGP SIGNATURE-----

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
  • Patch 7.4.336 Bram Moolenaar
    • Re: Patch 7.4.... Павлов Николай Александрович

Raspunde prin e-mail lui