2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-09-07 08:12:35 -06:00

Fix incorrect initial line and column count

This commit is contained in:
Jeroen Akkerman 2022-01-14 22:33:35 +01:00
parent 56532f9ce4
commit 24d86491da
2 changed files with 5 additions and 2 deletions

View File

@ -4,7 +4,10 @@ All notable changes to easymde will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
<!-- ## [Unreleased] -->
## [Unreleased]
### Fixed
- Incorrect initial line and column count in status bar.
## [2.16.0] - 2022-01-11
### Added
- `direction` option to enable RTL mode (Thanks to [@souljuse], [#358]).

View File

@ -2690,7 +2690,7 @@ EasyMDE.prototype.createStatusbar = function (status) {
};
} else if (name === 'cursor') {
defaultValue = function (el) {
el.innerHTML = '0:0';
el.innerHTML = '1:1';
};
onActivity = function (el) {
var pos = cm.getCursor();