mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
fix(snippet): setting end_right_gravity (#35061)
When right_gravity is set to true for deactivating tabstop expansion we have to set end_right_gravity to false to avoid expanding the tabstop region on the right side. Vice versa for activating tabstop expansion again.
This commit is contained in:
@@ -249,7 +249,11 @@ describe('vim.snippet', function()
|
||||
feed('<Tab>')
|
||||
poke_eventloop()
|
||||
feed(',2')
|
||||
eq({ 'for i=1,10,2 do', '\t', 'end' }, buf_lines(0))
|
||||
-- Make sure changes on previous tabstops does not change following ones
|
||||
feed('<S-Tab>')
|
||||
poke_eventloop()
|
||||
feed('20')
|
||||
eq({ 'for i=1,20,2 do', '\t', 'end' }, buf_lines(0))
|
||||
end)
|
||||
|
||||
it('updates snippet state when built-in completion menu is visible', function()
|
||||
|
Reference in New Issue
Block a user