File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -112,21 +112,25 @@ end
112112
113113Link .cursor = function ()
114114 local node = tsu .get_node_at_cursor ()
115+ if not node then return end
115116 return node , node :type ()
116117end
117118
118119Link .parent = function (node )
119120 local parent = node :parent ()
121+ if not parent then return end
120122 return parent , parent :type ()
121123end
122124
123125Link .node = {
124126prev = function (node )
125127 local next = tsu .get_prev_node (node )
128+ if not next then return end
126129 return next , next :type ()
127130end ,
128131next = function (node )
129132 local next = tsu .get_next_node (node )
133+ if not next then return end
130134 return next , next :type ()
131135end
132136}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ Agenda.Agenda = {
1414 tasks = {},
1515}
1616
17- --- @class table <down.mod.. task.agenda.Agenda >
17+ --- @class table <down.mod.task.agenda.Agenda >
1818Agenda .agendas = {}
1919
2020--- @class down.mod..task.agenda.Config
You can’t perform that action at this time.
0 commit comments