Skip to content

Commit 1ab7b45

Browse files
fix(agenda): Do not attempt to set text for view that is empty
1 parent 2fc30d3 commit 1ab7b45

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lua/orgmode/agenda/view/init.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ function OrgAgendaView:replace_line(old_line, new_line)
5959
end
6060

6161
function OrgAgendaView:render()
62+
if #self.lines == 0 then
63+
return self
64+
end
6265
local lines = {}
6366
local highlights = {}
6467
local virt_texts = {}

0 commit comments

Comments
 (0)