federicoiosue / Omni-Notes

Open source note-taking application for Android
https://omninotes.app
GNU General Public License v3.0
2.69k stars 1.1k forks source link

Bug Report: Deleting One Tag in a Note Affects Another Tag in the Same Note #949

Closed XYIheng closed 5 months ago

XYIheng commented 9 months ago

Description:

When deleting a tag from a note, it erroneously impacts another tag within the same note, leading to unintended changes in the tag.

Reproduce steps:

  1. Click FAB to add a note
  2. Add two tags to this note: #tag1, #tag2
  3. Move the cursor inside #tag2, e.g., after '#' and before 't' (That step is important to reproduce this bug)
  4. Delete #tag1
  5. See the error: "#tag2" turns to "# tag2"

Bug video:

https://github.com/federicoiosue/Omni-Notes/assets/31406320/612f4ec3-3367-4a71-9a3c-2d5f73ea3326

Additional details:

The bug only occurs when you put the cursor inside the #tag2. I guess that can help fix the bug

Environment:

Omninotes Version: 6.3.0

federicoiosue commented 8 months ago

The fact that the "tags" are managed just as normal text content pretty much everywhere instead like something more special than that brings to many hard to predict misbehaviors.

I'll check it, thanks for reporting

XYIheng commented 5 months ago

fixed in 6.3.2 alpha

XYIheng commented 5 months ago

Sorry, my mistake. The bug still exists in 6.3.2 alpha