mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.2.1174: no test for the "recording @x" message
Problem: No test for the "recording @x" message.
Solution: Add a test. (Dominique Pellé, closes vim/vim#6427)
11a5b19a8c
This commit is contained in:
parent
8cf4a02bf2
commit
1e823986e9
@ -2,6 +2,9 @@
|
|||||||
" Tests for register operations
|
" Tests for register operations
|
||||||
"
|
"
|
||||||
|
|
||||||
|
source check.vim
|
||||||
|
source view_util.vim
|
||||||
|
|
||||||
" This test must be executed first to check for empty and unset registers.
|
" This test must be executed first to check for empty and unset registers.
|
||||||
func Test_aaa_empty_reg_test()
|
func Test_aaa_empty_reg_test()
|
||||||
call assert_fails('normal @@', 'E748:')
|
call assert_fails('normal @@', 'E748:')
|
||||||
@ -77,6 +80,19 @@ func Test_display_registers()
|
|||||||
bwipe!
|
bwipe!
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
func Test_recording_status_in_ex_line()
|
||||||
|
norm qx
|
||||||
|
redraw!
|
||||||
|
call assert_equal('recording @x', Screenline(&lines))
|
||||||
|
set shortmess=q
|
||||||
|
redraw!
|
||||||
|
call assert_equal('recording', Screenline(&lines))
|
||||||
|
set shortmess&
|
||||||
|
norm q
|
||||||
|
redraw!
|
||||||
|
call assert_equal('', Screenline(&lines))
|
||||||
|
endfunc
|
||||||
|
|
||||||
" Check that replaying a typed sequence does not use an Esc and following
|
" Check that replaying a typed sequence does not use an Esc and following
|
||||||
" characters as an escape sequence.
|
" characters as an escape sequence.
|
||||||
func Test_recording_esc_sequence()
|
func Test_recording_esc_sequence()
|
||||||
|
Loading…
Reference in New Issue
Block a user