Mercurial > hg > octave-avbm
changeset 16025:a78c1e445cfc
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.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 09 Feb 2013 07:14:39 -0800 |
parents | 98f90d4dca20 |
children | 84d3abfa585b |
files | libinterp/interpfcn/oct-hist.cc |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/interpfcn/oct-hist.cc +++ b/libinterp/interpfcn/oct-hist.cc @@ -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")