diff options
Diffstat (limited to 'test/functional/lua/snippet_spec.lua')
-rw-r--r-- | test/functional/lua/snippet_spec.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/lua/snippet_spec.lua b/test/functional/lua/snippet_spec.lua index 1ae1bc71d5..fea9d1e982 100644 --- a/test/functional/lua/snippet_spec.lua +++ b/test/functional/lua/snippet_spec.lua @@ -154,4 +154,10 @@ describe('vim.snippet', function() it('errors with multiple $0 tabstops', function() test_fail('function $1() { $0 }$0', 'multiple $0 tabstops') end) + + it('cancels session when deleting the snippet', function() + test_success({ 'local function $1()', ' $0', 'end' }, { 'local function ()', ' ', 'end' }) + feed('<esc>Vjjd') + eq(false, exec_lua('return vim.snippet.active()')) + end) end) |