damionx7 / Zettel-Notes-Documentation

Documentation for Zettel Notes : Markdown Note Taking application for android devices
https://znotes.thedoc.eu.org/
GNU General Public License v3.0
55 stars 5 forks source link

The snippet removes the previous character #213

Closed irmod closed 2 days ago

irmod commented 2 days ago

Zettel Notes v2.7.7

@damionx7, inserting a snippet through the :: context menu removes any significant character (except space and the beginning of a line) in the position preceding the insertion point.

Before inserting a snippet:

Zettel Notes

After inserting the snippet:

Snippet_markdown.jpg

``markdown
[Zettel Notes](https://znotes.thedoc.eu.org/changelog/)


In unpredictable cases (for example, Zettel Notes was restarted), the snippet can be inserted without deleting the previous character. A repeated attempt to insert a snippet occurs with the removal of the previous character.

I expect that inserting a snippet will not change the existing text.

https://github.com/user-attachments/assets/77893116-6dd7-4ee4-b07b-a2c242c599b5

https://github.com/user-attachments/assets/a51178c2-d318-4641-992d-469a74af4a9e
damionx7 commented 2 days ago

Thanks for reporting. I have fixed this issue.