aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-04-15 03:43:33 +0800
committerGitHub <noreply@github.com>2024-04-15 03:43:33 +0800
commitaa1d0ac095dcc08b6069d716222739e83cbe051f (patch)
tree03b80415d539a8b601505a4bd8426bcd596b332b /test/functional
parentf6a3fdd6848d67dc54cebb6c297f8ebdc109c3a3 (diff)
downloadrneovim-aa1d0ac095dcc08b6069d716222739e83cbe051f.tar.gz
rneovim-aa1d0ac095dcc08b6069d716222739e83cbe051f.tar.bz2
rneovim-aa1d0ac095dcc08b6069d716222739e83cbe051f.zip
fix(defaults): only repeat macro for each selected line if linewise (#28289)
As mentioned in #28287, repeating a macro for each selected line doesn't really make sense in non-linewise Visual mode. Fix #28287
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/editor/macro_spec.lua37
1 files changed, 0 insertions, 37 deletions
diff --git a/test/functional/editor/macro_spec.lua b/test/functional/editor/macro_spec.lua
index a2a165ab0f..4e32e5b3af 100644
--- a/test/functional/editor/macro_spec.lua
+++ b/test/functional/editor/macro_spec.lua
@@ -131,43 +131,6 @@ helloFOO123
helloFOO]]
end)
- -- XXX: does this really make sense?
- it('can be replayed with @ in blockwise Visual mode', function()
- insert [[
-hello
-hello
-hello]]
- feed [[gg]]
-
- feed [[qqAFOO<esc>qu]]
- expect [[
-hello
-hello
-hello]]
-
- feed [[qwA123<esc>qu]]
- expect [[
-hello
-hello
-hello]]
-
- feed [[<C-v>3j@q]]
- expect [[
-helloFOO
-helloFOO
-helloFOO]]
-
- feed [[gg<C-v>j@w]]
- expect [[
-helloFOO123
-helloFOO123
-helloFOO]]
- end)
-end)
-
-describe('macros without default mappings', function()
- before_each(clear)
-
it('can be recorded and replayed in Visual mode', function()
insert('foo BAR BAR foo BAR foo BAR BAR BAR foo BAR BAR')
feed('0vqifofRq')