aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-07-12 08:28:56 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-07-12 14:08:34 +0800
commitd079995fb81bf3d61f7698373442f61476b99fce (patch)
tree27df065f0a9d2b58d90ad17a4cdea751a0b12156 /test/functional
parent6a670a00b3553a3ad87ddc6dfd06725796f58f1e (diff)
downloadrneovim-d079995fb81bf3d61f7698373442f61476b99fce.tar.gz
rneovim-d079995fb81bf3d61f7698373442f61476b99fce.tar.bz2
rneovim-d079995fb81bf3d61f7698373442f61476b99fce.zip
vim-patch:8.2.0270: some code not covered by tests
Problem: Some code not covered by tests. Solution: Add test cases. (Yegappan Lakshmanan, closes vim/vim#5649) https://github.com/vim/vim/commit/bc2b71d44a0b90b6aeb3534a76912fccbe5577df
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/legacy/ex_mode_spec.lua15
1 files changed, 13 insertions, 2 deletions
diff --git a/test/functional/legacy/ex_mode_spec.lua b/test/functional/legacy/ex_mode_spec.lua
index b3fd94f4f8..bd4c8bd3ff 100644
--- a/test/functional/legacy/ex_mode_spec.lua
+++ b/test/functional/legacy/ex_mode_spec.lua
@@ -87,11 +87,22 @@ describe('Ex mode', function()
:^ |
]])
+ -- Pressing enter in ex mode should print the current line
+ feed('<CR>')
+ screen:expect([[
+ 1 foo foo |
+ ^^^y |
+ 2 foo foo |
+ ^^^q |
+ 3 foo foo |
+ :^ |
+ ]])
+
feed(':vi<CR>')
screen:expect([[
1 foo bar |
- 2 fo^o foo |
- 3 foo foo |
+ 2 foo foo |
+ 3 ^foo foo |
~ |
~ |
|