Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong todo is marked as done when cursor is at the beginning of a line and some todos are filtered out #15

Open
minkkinen opened this issue Nov 3, 2016 · 1 comment

Comments

@minkkinen
Copy link

As the title says, I sometimes find that the wrong todo is marked as done when cursor is at the beginning of a line and some todos are filtered out. I suspect that Emacs thinks that the cursor is actually on one of the hidden lines and marks that as done. This is potentially dangerous as it can be hard to hunt down which todo was just marked as done and then I forget to do something :)

I'm using GNU Emacs 25.1.1 and the latest todo.txt from MELPA.

fab-bar added a commit to fab-bar/todotxt.el that referenced this issue May 12, 2017
todotxt-complete-toggle outputs a message instead of toggling the complete state
if point is on a hidden line.
See rpdillon#15
@fab-bar
Copy link

fab-bar commented May 12, 2017

In my fork I have committed a change that addresses this issue (3cb04f5):
When point is on a hidden line no todo-item is marked as completed. Instead the user is warned that point is on a hidden line.

I think a proper fix of this issue would avoid the situation where point is on a hidden line but this simple modification avoids that todo-items are lost by marking a hidden item as completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants