Kungsgeten / yankpad

Paste snippets from an org-mode file
MIT License
216 stars 18 forks source link

Regression: using yankpad-expand on a keyword at beginning of file does not expand! #83

Closed ag91 closed 3 years ago

ag91 commented 3 years ago

Hi, thanks for this package once more!

I have noticed that after the last update I cannot expand snippets at beginning of file anymore. The bug was definitely introduced after this commit, because I reverted to that and things work again. Probably https://github.com/Kungsgeten/yankpad/pull/81 is related but does not solve my issue (I tried to use that code).

You should be able to reproduce by simply creating a file, adding the keyword of your snippet and trying to expand it: nothing will happen with the latest version of yankpad!

Thanks again!

isamert commented 3 years ago

Hey @ag91, I also realized #81 was failing to fix the issue in every case, I pushed a new commit to fix the issue. Can you check it again?

ag91 commented 3 years ago

Yeah, your bol change works for me. Thanks for the time you put into this, I will use your version until this gets merged

Kungsgeten commented 3 years ago

Fixed by #81, thanks!