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:
Jan Edmund Lazo 2020-12-25 03:04:15 -05:00
parent 8cf4a02bf2
commit 1e823986e9
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15

View File

@ -2,6 +2,9 @@
" Tests for register operations
"
source check.vim
source view_util.vim
" This test must be executed first to check for empty and unset registers.
func Test_aaa_empty_reg_test()
call assert_fails('normal @@', 'E748:')
@ -77,6 +80,19 @@ func Test_display_registers()
bwipe!
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
" characters as an escape sequence.
func Test_recording_esc_sequence()