Milkdown / vscode

MIT License
257 stars 10 forks source link

Cursor position lost and falls back to end of the document when saving #17

Closed Win7GM closed 2 years ago

Win7GM commented 2 years ago

The cursor position is lost when saving using Ctrl+S. This causes the cursor to jump to its default position, which is end of the file, upon user input using keyboard.

It seems sometimes auto saving also causes this, but frankly speaking I cannot always reproduce it. So the cause is unknown to me.

Saul-Mirone commented 2 years ago

Fixed in new version.