fix(#1533): make toggle_mark ignore non-togglable nodes. (#1534)

This commit is contained in:
Sebastian Volland
2022-08-22 06:24:25 +02:00
committed by GitHub
parent 049cdd3073
commit 90dcf42bba

View File

@@ -17,6 +17,10 @@ local function remove_mark(node)
end end
function M.toggle_mark(node) function M.toggle_mark(node)
if node.absolute_path == nil then
return
end
if M.get_mark(node) then if M.get_mark(node) then
remove_mark(node) remove_mark(node)
else else