mirror of
https://github.com/neovim/neovim.git
synced 2026-04-27 09:44:07 +00:00
fix(snippet): early return for final tabstop #35115
The cursor movement autocommand can not detect when the final tabstop $0 is directly adjacent to another tabstop, which prevents ending the snippet session. The fix is an early return when jumping.
This commit is contained in:
@@ -1309,7 +1309,7 @@ describe('vim.lsp.completion: integration', function()
|
||||
end)
|
||||
feed('<C-n><C-y>')
|
||||
eq(
|
||||
{ true, { 'if true then', '\t', 'end' } },
|
||||
{ false, { 'if true then', '\t', 'end' } },
|
||||
exec_lua(function()
|
||||
return {
|
||||
vim.snippet.active({ direction = 1 }),
|
||||
|
||||
Reference in New Issue
Block a user