Skip to content

Preserve formatting when moving selected lines up - #1988

Open
EhsanAzish80 wants to merge 1 commit into
glushchenko:masterfrom
EhsanAzish80:fix/1987-preserve-line-formatting
Open

Preserve formatting when moving selected lines up#1988
EhsanAzish80 wants to merge 1 commit into
glushchenko:masterfrom
EhsanAzish80:fix/1987-preserve-line-formatting

Conversation

@EhsanAzish80

Copy link
Copy Markdown

Fixes #1987.

moveSelectedLinesUp() reconstructed the correct attributed content but inserted it through NSTextView.insertText, allowing editor attributes to be reapplied. Moving lines down already avoids this by replacing the range directly in textStorage.

This change makes the upward operation use the same attributed replacement path, preserving formatting in both directions.

Verification:

  • Built the FSNotes macOS scheme successfully
  • Confirmed the upward and downward operations now use the same attributed-text replacement behavior

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move Selected Line Up Display bug

1 participant