NotePlan / NotePlan/plugins

Fix bug in Editor.insertParagraphAtCursor()

Open
#205 3 comments 0 reactions 1 assignee View on GitHub

@EduardMe is already working on this.

Since Jan 12, 2022.

API bug E-1 P-3
Dominant language
JavaScript
Stars
204
Forks
82
Avg merge
22h 27m
Merged PRs (30d)
3

Description

I've tried using Editor.insertParagraphAtCursor() for the first time, and it has a consistent problem of inserting one character too early. The docs say "Inserts a plain paragraph before the selected paragraph (or the paragraph the cursor is currently positioned)" but when the cursor is at the start of a new line it actually appends to the end of the previous line.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.