Commit: patch 9.1.0895: default history value is too small

4 views
Skip to first unread message

Christian Brabandt

unread,
Nov 28, 2024, 4:30:12 PM11/28/24
to vim...@googlegroups.com
patch 9.1.0895: default history value is too small

Commit: https://github.com/vim/vim/commit/c0d30eff6d5367a6e4eb7365501e7501dde31539
Author: Luca Saccarola <github...@aleeas.com>
Date: Thu Nov 28 22:27:28 2024 +0100

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...@aleeas.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/defaults.vim b/runtime/defaults.vim
index 953cec700..82f335896 100644
--- a/runtime/defaults.vim
+++ b/runtime/defaults.vim
@@ -36,7 +36,6 @@ silent! endwhile
" 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 e9f35e4f3..05c2d9d4c 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -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.

*'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 5df5fb75c..ca085d42c 100644
--- a/src/optiondefs.h
+++ b/src/optiondefs.h
@@ -1305,7 +1305,7 @@ static struct vimoption options[] =
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 46f313b31..325788c8c 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 895,
/**/
894,
/**/
Reply all
Reply to author
Forward
0 new messages