mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-06-27 21:21:02 -06:00
Merge pull request #384 from Zignature/ZignatureEasyMDE
Fix #381 Accurate line and column count in status bar
This commit is contained in:
commit
59a676bc8a
@ -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…
x
Reference in New Issue
Block a user