Skip to content

Commit

Permalink
Merge pull request #384 from Zignature/ZignatureEasyMDE
Browse files Browse the repository at this point in the history
Fix #381 Accurate line and column count in status bar
  • Loading branch information
Ionaru committed Jan 8, 2022
2 parents 598821b + 2936fc3 commit 59a676b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/easymde.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 59a676b

Please sign in to comment.