Skip to content

Commit

Permalink
Format with stylua
Browse files Browse the repository at this point in the history
  • Loading branch information
L3MON4D3 authored and github-actions[bot] committed Jan 17, 2024
1 parent 57446c0 commit f04183d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions lua/luasnip/nodes/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -519,8 +519,11 @@ local function refocus(from, to)
-- here.
-- snippet does not have input_leave_children, so only input_leave
-- needs to be called.
ok2 =
pcall(from.parent.snippet.input_leave, from.parent.snippet, true)
ok2 = pcall(
from.parent.snippet.input_leave,
from.parent.snippet,
true
)
end
if not ok1 or not ok2 then
from.parent.snippet:remove_from_jumplist()
Expand All @@ -536,8 +539,11 @@ local function refocus(from, to)
ok3 = true
else
ok2 = pcall(leave_nodes_between, node.parent.snippet, node, true)
ok3 =
pcall(node.parent.snippet.input_leave, node.parent.snippet, true)
ok3 = pcall(
node.parent.snippet.input_leave,
node.parent.snippet,
true
)
end

if not ok1 or not ok2 or not ok3 then
Expand Down

0 comments on commit f04183d

Please sign in to comment.