Merge pull request #384 from Zignature/ZignatureEasyMDE

Fix #381 Accurate line and column count in status bar
pull/385/head
Jeroen Akkerman 2 years ago committed by GitHub
commit 59a676bc8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2672,7 +2672,9 @@ EasyMDE.prototype.createStatusbar = function (status) {
};
onActivity = function (el) {
var pos = cm.getCursor();
el.innerHTML = pos.line + ':' + pos.ch;
var posLine = pos.line + 1;
var posColumn = pos.ch + 1;
el.innerHTML = posLine + ':' + posColumn;
};
} else if (name === 'autosave') {
defaultValue = function (el) {

Loading…
Cancel
Save