patch 9.1.0895: default history value is too small
Problem: default history value is too small
Solution: promote the change from defaults.vim back to
the C core, so increase the default 'history' option value
from 50 to 200 (Lucca Saccarola)
closes: #16129
Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/runtime/defaults.vim b/runtime/defaults.vim
index 953cec7..82f3358 100644
--- a/runtime/defaults.vim
+++ b/runtime/defaults.vim
@@ -36,7 +36,6 @@
" Allow backspacing over everything in insert mode.
set backspace=indent,eol,start
-set history=200 " keep 200 lines of command line history
set ruler " show the cursor position all the time
set showcmd " display incomplete commands
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index e9f35e4..05c2d9d 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -4435,8 +4435,7 @@
See |highlight-default| for the default highlight groups.
*'history'* *'hi'*
-'history' 'hi' number (Vim default: 50, Vi default: 0,
- set to 200 in |defaults.vim|)
+'history' 'hi' number (Vim default: 200, Vi default: 0)
global
A history of ":" commands, and a history of previous search patterns
is remembered. This option decides how many entries may be stored in
diff --git a/src/optiondefs.h b/src/optiondefs.h
index 5df5fb7..ca085d4 100644
--- a/src/optiondefs.h
+++ b/src/optiondefs.h
@@ -1305,7 +1305,7 @@
SCTX_INIT},
{"history", "hi", P_NUM|P_VIM,
(char_u *)&p_hi, PV_NONE, NULL, NULL,
- {(char_u *)0L, (char_u *)50L} SCTX_INIT},
+ {(char_u *)0L, (char_u *)200L} SCTX_INIT},
{"hkmap", "hk", P_BOOL|P_VI_DEF|P_VIM,
#ifdef FEAT_RIGHTLEFT
(char_u *)&p_hkmap, PV_NONE, NULL, NULL,
diff --git a/src/version.c b/src/version.c
index 46f313b..325788c 100644
--- a/src/version.c
+++ b/src/version.c
@@ -705,6 +705,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 895,
+/**/
894,
/**/
893,