]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0895: default history value is too small v9.1.0895
authorLuca Saccarola <github.e41mv@aleeas.com>
Thu, 28 Nov 2024 21:27:28 +0000 (22:27 +0100)
committerChristian Brabandt <cb@256bit.org>
Thu, 28 Nov 2024 21:27:28 +0000 (22:27 +0100)
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>
runtime/defaults.vim
runtime/doc/options.txt
src/optiondefs.h
src/version.c

index 953cec700cc62c2f86a5e81b4470fcb9fe221563..82f3358962e899332523f282609217ddf2ea22ad 100644 (file)
@@ -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
 
index e9f35e4f31ba619e2f52861cb24930a83c9800ab..05c2d9d4c3ee73bd058710892ea25d0ca18c9184 100644 (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.
 
                                                *'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
index 5df5fb75c24043e4a97f7eab36faf8eba933b4b0..ca085d42c27ca0aee5bad9c5aea733ce837a1f37 100644 (file)
@@ -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,
index 46f313b31ac7d047d5edc5a19784ea6ccc33362b..325788c8cc169852f6c354a7ffee1f077ed16c4a 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    895,
 /**/
     894,
 /**/