aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-12-25 03:04:15 -0500
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-12-25 10:17:01 -0500
commit1e823986e98721d7fda9a7d28fb9c085fdbc73a6 (patch)
tree1484f66fb3b951cdf53aca90df12abc18d8f94f1 /src
parent8cf4a02bf23af9eaafba3f0dbc1c613aa1b91575 (diff)
downloadrneovim-1e823986e98721d7fda9a7d28fb9c085fdbc73a6.tar.gz
rneovim-1e823986e98721d7fda9a7d28fb9c085fdbc73a6.tar.bz2
rneovim-1e823986e98721d7fda9a7d28fb9c085fdbc73a6.zip
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) https://github.com/vim/vim/commit/11a5b19a8ce543c258832ac53d771047f4e1061d
Diffstat (limited to 'src')
-rw-r--r--src/nvim/testdir/test_registers.vim16
1 files changed, 16 insertions, 0 deletions
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()