diff src/testdir/test_registers.vim @ 21246:ce655819d9ec v8.2.1174

patch 8.2.1174: no test for the "recording @x" message Commit: https://github.com/vim/vim/commit/11a5b19a8ce543c258832ac53d771047f4e1061d Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 10 21:17:51 2020 +0200 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 https://github.com/vim/vim/issues/6427)
author Bram Moolenaar <Bram@vim.org>
date Fri, 10 Jul 2020 21:30:04 +0200
parents 136b33ce8216
children 08940efa6b4e
line wrap: on
line diff
--- a/src/testdir/test_registers.vim
+++ b/src/testdir/test_registers.vim
@@ -3,6 +3,7 @@
 "
 
 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()
@@ -164,6 +165,19 @@ func Test_register_one()
   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()