alphapapa/magit-todos

Setting Magit todos insert at fails if such a section is missing

sluedecke opened this issue · 2 comments

Emacs rings its bell and tells me (in Messages): magit-section-forward: No next section if I set magit-todos-insert-at to anything but top or bottom and the section is not filled (i.e. no untracked files in repository):

Section set to TOP:

image

Section set to "After untracked files":

image

Hm, maybe something changed in magit-section, or maybe this bug was never noticed before. We'll probably need to add a fallback in case the section doesn't exist. Thanks for reporting.

@sluedecke Thanks for reporting this. Please let me know if it's now fixed for you.