Commit c480161
committed
fix(agenda): correctly re-render agenda on repeated todo state changed
In Emacs Orgmode, toggling todo state of a headline in agenda leaves the
headline visible in agenda until the next re-render. We do the same, but
only for headlines that do not add new lines to the file content. If it
adds new lines, we need to re-read the file and re-render the agenda
because the locations of other headlines can be stale and invalid.
We had this fix in place for some time now, but it got moved in some of
the refactorings and check was failing.1 parent dc9864f commit c480161
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
578 | 578 | | |
579 | 579 | | |
580 | 580 | | |
| 581 | + | |
| 582 | + | |
581 | 583 | | |
582 | 584 | | |
583 | 585 | | |
584 | 586 | | |
585 | 587 | | |
586 | 588 | | |
587 | 589 | | |
588 | | - | |
589 | | - | |
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
| |||
0 commit comments