Skip to content

Commit

Permalink
Merge pull request #4 from gokberkgunes/dev
Browse files Browse the repository at this point in the history
if history is true, allow connecting to other snippets.
  • Loading branch information
gokberkgunes committed Apr 18, 2024
2 parents 3492420 + a2e91a5 commit 128e4b5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/luasnip/nodes/insertNode.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ local ExitNode = InsertNode:new()
local util = require("luasnip.util.util")
local node_util = require("luasnip.nodes.util")
local types = require("luasnip.util.types")
local session = require("luasnip.session")
local events = require("luasnip.util.events")
local extend_decorator = require("luasnip.util.extend_decorator")

Expand Down Expand Up @@ -173,6 +174,10 @@ function ExitNode:jump_into(dir, no_move, dry_run)
end
else
if not self.next then
if session.config.history then
self:input_enter(no_move, dry_run)
return self
end
self:input_enter(no_move, dry_run)
return nil
elseif not self.prev then
Expand Down

0 comments on commit 128e4b5

Please sign in to comment.