-
Notifications
You must be signed in to change notification settings - Fork 75
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
C-c C-c ledger-toggle-current searches backwards indefinitely #374
Comments
I can't reproduce this behavior. There have been a couple recent changes to Can you provide a sample ledger file and a step-by-step reproduction example? |
Hey, Aaron. Gladly: Upgrading ledger-mode to today's version on MELPA (20240322.2155) still produces the behavior for me. Steps to reproduce
|
Ah, thanks for the example. It turns out I also had to set |
If the cursor isn't on a transaction, hitting
C-c C-c
(ledger-toggle-current
) will search backwards until it finds a transaction, and then toggles its state.The behavior is the same as in issue #316, where I explain this problem in a bit more detail. Like in #316, my suggestion here is to add some validation that only lets a user perform
ledger-toggle-current
when point is on a valid transaction or posting.I'll probably provide a fix in a PR shortly.
The text was updated successfully, but these errors were encountered: