Lines Matching refs:history

1 " Tests for the history functions
6 set history=7
9 " First clear the history
33 let a=execute('history ' . a:hist)
34 call assert_match("^\n # \\S* history\n 3 buffers\n> 4 ls$", a)
35 let a=execute('history all')
36 call assert_match("^\n # .* history\n 3 buffers\n> 4 ls", a)
39 let a=execute('history ' . a:hist . ' 2')
40 call assert_match("^\n # \\S* history$", a)
41 let a=execute('history ' . a:hist . ' 3')
42 call assert_match("^\n # \\S* history\n 3 buffers$", a)
43 let a=execute('history ' . a:hist . ' 4')
44 call assert_match("^\n # \\S* history\n> 4 ls$", a)
45 let a=execute('history ' . a:hist . ' 3,4')
46 call assert_match("^\n # \\S* history\n 3 buffers\n> 4 ls$", a)
47 let a=execute('history ' . a:hist . ' -1')
48 call assert_match("^\n # \\S* history\n> 4 ls$", a)
49 let a=execute('history ' . a:hist . ' -2')
50 call assert_match("^\n # \\S* history\n 3 buffers$", a)
51 let a=execute('history ' . a:hist . ' -2,')
52 call assert_match("^\n # \\S* history\n 3 buffers\n> 4 ls$", a)
53 let a=execute('history ' . a:hist . ' -3')
54 call assert_match("^\n # \\S* history$", a)
64 " Test for freeing the entire history list
74 " Test for freeing an entry at the beginning of the history list
96 call assert_fails('history xyz', 'E488:')
97 call assert_fails('history ,abc', 'E488:')
104 let a = execute('history : -1')
106 call assert_match("^\n # cmd history\n"
109 " Long history entry should be truncated to fit on the screen, with, '...'
112 let a = execute('history : -1')
113 call assert_match("^\n # cmd history\n"
134 " Test for :history command option completion
136 call feedkeys(":history \<C-A>\<C-B>\"\<CR>", 'tx')
137 call assert_equal('"history / : = > ? @ all cmd debug expr input search', @:)
140 " Test for increasing the 'history' option value
142 let save_histsz = &history
143 set history=10
152 set history=15
160 set history=5
169 set history=0
171 call feedkeys(":history\<CR>", 'xt')
173 call assert_equal(["'history' option is zero"], split(v, "\n"))
176 let &history=save_histsz
196 " Search for a pattern that is not present in the history
199 " Recall patterns with 'history' set to 0
200 set history=0
204 set history&
206 " Recall patterns till the end of history
207 set history=4
215 " Test for wrapping around the history list
232 " Test for changing the search command separator in the history
241 set history&
244 " Test for making sure the key value is not stored in history