Skip to content

Commit 4d8d86a

Browse files
committedMar 16, 2025
make set_cookie private
1 parent 8124526 commit 4d8d86a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎lua/orgmode/files/headline.lua

+5-5
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ function Headline:get_cookie()
892892
return self:_parse_title_part('%[%d?%d?%d?%%%]')
893893
end
894894

895-
function Headline:set_cookie(cookie, num, denum)
895+
function Headline:_set_cookie(cookie, num, denum)
896896
-- Update the cookie
897897
local new_cookie_val
898898
if self.file:get_node_text(cookie):find('%%') then
@@ -933,8 +933,8 @@ function Headline:update_cookie()
933933
end
934934
end
935935

936-
-- Update the cookie
937-
return self:set_cookie(cookie, num_checked_boxes, num_boxes)
936+
-- Set the cookie
937+
return self:_set_cookie(cookie, num_checked_boxes, num_boxes)
938938
end
939939

940940
function Headline:update_todo_cookie()
@@ -952,8 +952,8 @@ function Headline:update_todo_cookie()
952952
return h:is_done()
953953
end, children)
954954

955-
-- Update the cookie
956-
return self:set_cookie(cookie, #dones, #children)
955+
-- Set the cookie
956+
return self:_set_cookie(cookie, #dones, #children)
957957
end
958958

959959
function Headline:update_parent_cookie()

0 commit comments

Comments
 (0)