2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-08-20 23:52:44 -06:00

WIP: Tiny Patch

This commit is contained in:
Pierre-Henri Lavigne 2024-09-18 09:14:28 +09:00
parent 6a4ca8629c
commit a704a21d6c
No known key found for this signature in database
GPG Key ID: E2D1C9E2BBD3007D

View File

@ -2461,7 +2461,7 @@ EasyMDE.prototype.render = function (el) {
// Be gentle and set back the cursor at the appropriate position
cm.doc.setCursor({
line: obj.to.line,
ch: obj.text[0].length + 1,
ch: obj.text[0].length ? obj.text[0].length + 1 : 0,
});
return true;
}