typora / typora-issues

Bugs, suggestions or free discussions about the minimal markdown editor — Typora
https://typora.io
1.54k stars 56 forks source link

When an HTML entity is first/last character it cannot be selected #5851

Open rpopov opened 1 year ago

rpopov commented 1 year ago

Describe the bug

To Reproduce Steps to reproduce the behavior:

  1. Type the text on a new line
    α1 2 3 4 5β

    (without the apostrophes)

  2. Click before the alpha letter - the cursor is positioned after the alpha letter and a short time after this the code of the alpha entity is shown. Even then the cursor is after the entity
  3. Click after the beta letter - the cursor is positioned before the beta letter. The code of the entity is shown and even then the cursor is before the entity
  4. Click on any other letter
  5. Use SHIFT-CTRL-LeftArr and select until the beginning of the line - alpha is still not selected/marked
  6. Click on any other letter
  7. Use SHIFT-CTRL-RightArr and select until the end of the line - beta is still not selected/marked

Expected behavior

Screenshots / Screencasts Clicked before the alpha character - the cursor stays after it: alpha

Clicked after the beta character - the cursor stays before it (actually it disappears when taking a screenshot) beta

Sample Markdown File α1 2 3 4 5β

Desktop (please complete the following information):

Typora Version 1.7.4

rpopov commented 1 month ago

Any attention to this?