mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
feat(defaults): unimpaired empty line below/above cursor #30984
This commit is contained in:
committed by
GitHub
parent
a27419f3fc
commit
079e5f4f9b
@@ -152,6 +152,54 @@ describe('default', function()
|
||||
]],
|
||||
})
|
||||
end)
|
||||
|
||||
describe('[<Space>', function()
|
||||
it('adds an empty line above the current line', function()
|
||||
n.clear({ args_rm = { '--cmd' } })
|
||||
n.insert([[first line]])
|
||||
n.feed('[<Space>')
|
||||
n.expect([[
|
||||
|
||||
first line]])
|
||||
end)
|
||||
|
||||
it('works with a count', function()
|
||||
n.clear({ args_rm = { '--cmd' } })
|
||||
n.insert([[first line]])
|
||||
n.feed('5[<Space>')
|
||||
n.expect([[
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
first line]])
|
||||
end)
|
||||
end)
|
||||
|
||||
describe(']<Space>', function()
|
||||
it('adds an empty line below the current line', function()
|
||||
n.clear({ args_rm = { '--cmd' } })
|
||||
n.insert([[first line]])
|
||||
n.feed(']<Space>')
|
||||
n.expect([[
|
||||
first line
|
||||
]])
|
||||
end)
|
||||
|
||||
it('works with a count', function()
|
||||
n.clear({ args_rm = { '--cmd' } })
|
||||
n.insert([[first line]])
|
||||
n.feed('5]<Space>')
|
||||
n.expect([[
|
||||
first line
|
||||
|
||||
|
||||
|
||||
|
||||
]])
|
||||
end)
|
||||
end)
|
||||
end)
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user