ankitects / ankitects/anki

Undo in the editor

Ouverte
#1,326 5 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
editor
Langage dominant
Rust
Étoiles
30.5k
Forks
3.2k
Merge moyen
2 j 8 h
PR mergées (30 j)
60

Description

Anki 2.1.46 (94913ec2)⁩
Windows 10 21H1

(My English is very bad, these words below I used translation software, may not be very clear expression, but I hope you can understand)

Type some text
![图片](https://user-images.githubusercontent.com/63684082/128695990-e27a279d-626d-49c4-b384-cb3e14edfc5b.png)
Select some text superscript or subscript
![图片](https://user-images.githubusercontent.com/63684082/128696016-5e53fa57-ca67-44d4-9053-f469eaa410e1.png)
If you click the "HTML Editor" button after superscripting or subscripting some text
![图片](https://user-images.githubusercontent.com/63684082/128696023-24dbd0bd-0d77-4bbd-9c8f-9d59731ef281.png)
Then back
![图片](https://user-images.githubusercontent.com/63684082/128696029-c3a2746c-f554-42bd-855e-e043c919b6ec.png)
If you try to undo with Ctrl+Z again at this point, something strange will happen
Sometimes the undo will fail, sometimes the text will not be undone properly, but the previously deleted text will reappear.

I recorded a video to show it.
After returning from the "HTML Editor", the first time I pressed Ctrl+Z the text did not change (normally, the 123456789 should be 123456789), and when I pressed Ctrl+Z a second time, the previously deleted 999999 appeared. The third time I pressed Ctrl+Z, the 999999 that had suddenly appeared disappeared.

https://user-images.githubusercontent.com/63684082/128696905-1d87ea76-c335-4f04-ab92-70edbb424637.mp4

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.