From 1e823986e98721d7fda9a7d28fb9c085fdbc73a6 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Fri, 25 Dec 2020 03:04:15 -0500 Subject: vim-patch:8.2.1174: no test for the "recording @x" message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: No test for the "recording @x" message. Solution: Add a test. (Dominique Pellé, closes vim/vim#6427) https://github.com/vim/vim/commit/11a5b19a8ce543c258832ac53d771047f4e1061d --- src/nvim/testdir/test_registers.vim | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src') diff --git a/src/nvim/testdir/test_registers.vim b/src/nvim/testdir/test_registers.vim index 8a90f9b251..8d2a768ba0 100644 --- a/src/nvim/testdir/test_registers.vim +++ b/src/nvim/testdir/test_registers.vim @@ -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() -- cgit