l3kn / org-fc

Spaced Repetition System for Emacs org-mode
https://www.leonrische.me/fc/index.html
GNU General Public License v3.0
258 stars 31 forks source link

[Bug] Review shows a wider-than-expected view #101

Open cashpw opened 1 year ago

cashpw commented 1 year ago

My reviews regularly show headings from other cards.

To illustrate, I'll reference my clay shrinkage note. In a review of position "front" of 83f7b276-da21-4613-894b-ce62e960b211, when coming in from another file, all LEVEL=2 headings beneath Flashcards are shown. This is only reproducible when in a org-fc-context-all-style review which spans multiple files. A org-fc-context-buffer review has always correctly shown only the heading being reviewed.

I'll update here as I investigate.

cashpw commented 1 year ago

I haven't been able to reproduce the issue since adding a (debug) command before (org-fc-narrow) in org-fc-review-next-card. I suspect there's some asynchronous underlying issue and the pause before I hit c to exit the debugger is sufficient to ensure that (org-fc-narrow) works as intended.

The issue only appears in an org-fc-context-all, multi-file, review. It may be related to some package/mode/etc I have which occurs when going into a new file.