aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-11-14 15:13:50 +0100
committerJustin M. Keyes <justinkz@gmail.com>2016-11-15 04:22:24 +0100
commit708617ebb6aa9f078549646930c73f0755c2c2e6 (patch)
treeac6b245b3d21d4472b8a004fa5d60e8f95182d24 /test
parent91507c271e9e51cefed3dcac21f7a41b9cac0bbe (diff)
downloadrneovim-708617ebb6aa9f078549646930c73f0755c2c2e6.tar.gz
rneovim-708617ebb6aa9f078549646930c73f0755c2c2e6.tar.bz2
rneovim-708617ebb6aa9f078549646930c73f0755c2c2e6.zip
inccommand=nosplit: Jump to first match.
Call update_topline() to adjust the current viewport. Closes #5597
Diffstat (limited to 'test')
-rw-r--r--test/functional/ui/inccommand_spec.lua54
1 files changed, 13 insertions, 41 deletions
diff --git a/test/functional/ui/inccommand_spec.lua b/test/functional/ui/inccommand_spec.lua
index 7b6f82569a..811fee3a82 100644
--- a/test/functional/ui/inccommand_spec.lua
+++ b/test/functional/ui/inccommand_spec.lua
@@ -600,46 +600,18 @@ describe(":substitute, 'inccommand' preserves undo", function()
feed(":%s/tw/MO/g<esc>")
feed("u")
- if case == "split" then
- screen:expect([[
- ^LInc substitution on|
- two lines |
- |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- Already...st change |
- ]])
- elseif case == "" then
- screen:expect([[
- ^LInc substitution on|
- two lines |
- |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- Already...st change |
- ]])
- else
- screen:expect([[
- LInc substitution on|
- ^two lines |
- |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- Already...st change |
- ]])
- end
+ screen:expect([[
+ ^LInc substitution on|
+ two lines |
+ |
+ {15:~ }|
+ {15:~ }|
+ {15:~ }|
+ {15:~ }|
+ {15:~ }|
+ {15:~ }|
+ Already...st change |
+ ]])
end
screen:detach()
end)
@@ -905,11 +877,11 @@ describe(":substitute, inccommand=split", function()
feed(":%s/tw/X")
screen:expect([[
- Inc substitution on |
BBo lines |
Inc substitution on |
Xo lines |
Inc substitution on |
+ Xo lines |
{11:[No Name] [+] }|
|1001| {12:X}o lines |
|1003| {12:X}o lines |