notepad-plus-plus / notepad-plus-plus/notepad-plus-plus

New line auto-indent does not work while recording a macro

Open
#1,979 6 comments 2 reactions 1 assignee View on GitHub

@donho is already working on this.

Since Dec 25, 2021.

Dominant language
C++
Stars
29.4k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

Tested in Notepad++ v6.9.2

OBSERVED:
Generally, when user presses return to start new line from a line of text which is indented (by one or more presses of tab key), the new line inherits/copies the indent from the previous line. This is expected behaviour.
However, if user is recording a macro, then presses return to start new line from a line of text which is indented, the new line starts without any indent.

EXPECTED:
New lines should inherit the indent from the previous line in all circumstances. Recording a macro should not modify program behaviour.

TO REPRODUCE:

  1. Start new text file.
  2. Press tab to indent.
  3. Type some text.
  4. Press return. Observe new line starts with the indent from the line above.
  5. Start recording a macro.
  6. The input cursor should be indented. Type some text.
  7. Press return. Observe new line starts without any indentation.

Contributor guide

Open the contributing guide

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.