]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.1174: no test for the "recording @x" message v8.2.1174
authorBram Moolenaar <Bram@vim.org>
Fri, 10 Jul 2020 19:17:51 +0000 (21:17 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 10 Jul 2020 19:17:51 +0000 (21:17 +0200)
Problem:    No test for the "recording @x" message.
Solution:   Add a test. (Dominique PellĂ©, closes #6427)

src/testdir/test_registers.vim
src/version.c

index 242dfd4183e887875e56ad7fcf6c49672577b1ec..0f5022109b7ef87bc7333714841b798e86c2612e 100644 (file)
@@ -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()
index 2fa47040cb4d3f36ae3f81509e02915f64a5a4d5..3d8f86c64046a7bdec30d482205afc4492a5af4d 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1174,
 /**/
     1173,
 /**/