# HG changeset patch # User Rik # Date 1360422879 28800 # Node ID a78c1e445cfc2b290d8ca8c84ea1e179f48400a8 # Parent 98f90d4dca20df3035deeaffcd8a55bc8a6a7f59 Change default history size to 1000. Command number in prompt will now easily match command number in history. * libinterp/interpfcn/oct-hist.cc(default_history_size): Change size from 1024 to 1000. * libinterp/interpfcn/oct-hist.cc(Fhistory_size): Change docstring to say default history size is 1000. diff -r 98f90d4dca20 -r a78c1e445cfc libinterp/interpfcn/oct-hist.cc --- a/libinterp/interpfcn/oct-hist.cc Sat Feb 09 09:48:48 2013 -0500 +++ b/libinterp/interpfcn/oct-hist.cc Sat Feb 09 07:14:39 2013 -0800 @@ -91,7 +91,7 @@ static int default_history_size (void) { - int size = 1024; + int size = 1000; std::string env_size = octave_env::getenv ("OCTAVE_HISTSIZE"); @@ -735,7 +735,7 @@ @deftypefn {Built-in Function} {@var{val} =} history_size ()\n\ @deftypefnx {Built-in Function} {@var{old_val} =} history_size (@var{new_val})\n\ Query or set the internal variable that specifies how many entries\n\ -to store in the history file. The default value is @code{1024},\n\ +to store in the history file. The default value is @code{1000},\n\ but may be overridden by the environment variable @w{@env{OCTAVE_HISTSIZE}}.\n\ @seealso{history_file, history_timestamp_format_string, saving_history}\n\ @end deftypefn")