Problem: `:Pending due` quickfix items landed on line 1 instead of the task line. The `BufEnter` redirect branch captured cursor before quickfix had positioned it in the new window, so the stale position was used when transferring focus back to the registered pending window. Solution: move cursor capture inside `vim.schedule` so it reads after quickfix navigation has completed. Also guard `clear_marks` behind a `modified` check so extmarks are only cleared on actual edits. |
||
|---|---|---|
| .. | ||
| pending | ||