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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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