0
0
mirror of https://github.com/vim/vim.git synced 2025-10-15 07:14:09 -04:00

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>
This commit is contained in:
Luca Saccarola
2024-11-28 22:27:28 +01:00
committed by Christian Brabandt
parent 60ddb1a140
commit c0d30eff6d
4 changed files with 4 additions and 4 deletions

View File

@@ -36,7 +36,6 @@ silent! endwhile
" Allow backspacing over everything in insert mode. " Allow backspacing over everything in insert mode.
set backspace=indent,eol,start 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 ruler " show the cursor position all the time
set showcmd " display incomplete commands set showcmd " display incomplete commands

View File

@@ -4435,8 +4435,7 @@ A jump table for the options with a short description can be found at |Q_op|.
See |highlight-default| for the default highlight groups. See |highlight-default| for the default highlight groups.
*'history'* *'hi'* *'history'* *'hi'*
'history' 'hi' number (Vim default: 50, Vi default: 0, 'history' 'hi' number (Vim default: 200, Vi default: 0)
set to 200 in |defaults.vim|)
global global
A history of ":" commands, and a history of previous search patterns A history of ":" commands, and a history of previous search patterns
is remembered. This option decides how many entries may be stored in is remembered. This option decides how many entries may be stored in

View File

@@ -1305,7 +1305,7 @@ static struct vimoption options[] =
SCTX_INIT}, SCTX_INIT},
{"history", "hi", P_NUM|P_VIM, {"history", "hi", P_NUM|P_VIM,
(char_u *)&p_hi, PV_NONE, NULL, NULL, (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, {"hkmap", "hk", P_BOOL|P_VI_DEF|P_VIM,
#ifdef FEAT_RIGHTLEFT #ifdef FEAT_RIGHTLEFT
(char_u *)&p_hkmap, PV_NONE, NULL, NULL, (char_u *)&p_hkmap, PV_NONE, NULL, NULL,

View File

@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
895,
/**/ /**/
894, 894,
/**/ /**/