typora / typora-issues

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

Cannot erase everything beyond an apostrophe(') symbol. #4540

Closed raylv17 closed 3 years ago

raylv17 commented 3 years ago

Describe the bug If a lne contains both a mathmode block (\$...\$) and also an apostrophe symbol ('), then the line cannot be erased using backspace. It will always stop wherever the apostrophe is located. (full description provided in the video below)

To Reproduce Steps to reproduce the behavior: 1) write anything within the $$ symbols. $2$ 2) on the same line write anything with an apostrophe but it should not be in mathmode. $2$ asdf'jklmn 3) now starting from the end of the line, try backspacing everything. 4) observe that it the backspace will stop wherever the apostrophe is, and it won't erase anything beyond the apostrophe. $2$ asdf

Expected behavior Backspace should remove everything as long as it is pressed.

Screenshots / Screencasts https://youtu.be/ApQH0c0j86Q

Sample Markdown File Please attach or send us hi@typora.io the sample md file that may reproduce this.

Desktop (please complete the following information):

Typora Version v0.11

Additional context Add any other context about the problem here.

abnerlee commented 3 years ago

should be fixed in 0.11.2