typora / typora-issues

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

[bug] A inevitable bug of Code Blocks #5240

Open RavenLiao opened 2 years ago

RavenLiao commented 2 years ago

Describe the bug When I select some lines in the code Blocks and type some words using the Sogou input method. Then the rows I selected will all disappear and cannot be recalled by Ctrl+ Z. But it doesn't happen in normal Blocks.

To Reproduce Steps to reproduce the behavior:

  1. select some lines in the code Blocks
  2. type some words using the Sogou input method
  3. the rows I selected will all disappear and cannot be recalled by Ctrl+ Z

Expected behavior the rows I selected will not disappear and just work like normal blocks.

Screenshots / Screencasts show in the bug.mp4

Sample Markdown File in anything Markdown file

Desktop (please complete the following information): Windows 10 64bit

Typora Version v1.2.5

Additional context This is a problem that's been around since the beta

https://user-images.githubusercontent.com/47520028/167828247-c24a0ab6-0e8b-4037-af6b-42621f861ff7.mp4

abnerlee commented 2 years ago

relates #5135