From 24d86491da4786b170888265d660b782f5214299 Mon Sep 17 00:00:00 2001 From: Jeroen Akkerman Date: Fri, 14 Jan 2022 22:33:35 +0100 Subject: [PATCH] Fix incorrect initial line and column count --- CHANGELOG.md | 5 ++++- src/js/easymde.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 90e1160..c2929f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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] +### 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]). diff --git a/src/js/easymde.js b/src/js/easymde.js index 20a6c40..ea4a839 100644 --- a/src/js/easymde.js +++ b/src/js/easymde.js @@ -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();