[GH-ISSUE #8555] [Bug] Inconsistent behavior of pasting LF terminated text inside a code block in the Windows app #3900

Open
opened 2026-03-23 21:33:59 +00:00 by mirror · 0 comments
Owner

Originally created by @RonnyPumaricra on GitHub (Mar 6, 2026).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/8555

Bug Description

Copying code from a Linux environment (LF terminated) and pasting it to the app in Windows results in some unexpected behavior inside the code block, mainly:

  • End key puts cursor at the start of the next line
  • White spaces at the end of line are invisible

How to Reproduce

Image
  • Create an empty code block and paste the text inside
Image
  • Press End inside a line, the cursor goes to the start of the next line
Image
  • Move the cursor (arrow keys or mouse) to the end of a line
Image
  • Add 5 whitespaces at the end of a line, they aren't shown
Image
  • Add a non whitespace character, the whitespaces appear
Image

Expected Behavior

  • End key moves the cursor to the end of line
  • Whitespaces don't turn invisible at the end of line

Operating System

Windows 10

AppFlowy Version(s)

0.11.3

Screenshots

No response

Additional Context

No response

Originally created by @RonnyPumaricra on GitHub (Mar 6, 2026). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/8555 ### Bug Description Copying code from a Linux environment (LF terminated) and pasting it to the app in Windows results in some unexpected behavior inside the code block, mainly: * `End` key puts cursor at the start of the next line * White spaces at the end of line are invisible ### How to Reproduce * Copy an LF terminated text of several lines (try https://neatly.tools/tools/line-break-converter) <img width="411" height="350" alt="Image" src="https://github.com/user-attachments/assets/3f30551c-63c1-4f34-936e-292b4c64c5eb" /> * Create an empty code block and paste the text inside <img width="485" height="329" alt="Image" src="https://github.com/user-attachments/assets/2a7cea37-8330-4fb1-a5b0-702a59de5852" /> * Press `End` inside a line, the cursor goes to the start of the next line <img width="590" height="321" alt="Image" src="https://github.com/user-attachments/assets/63459573-5bd1-469d-8e82-53f8e1893062" /> * Move the cursor (arrow keys or mouse) to the end of a line <img width="369" height="319" alt="Image" src="https://github.com/user-attachments/assets/dfb62486-9592-4cd5-a0d4-eb76a1d4b5c5" /> * Add 5 whitespaces at the end of a line, they aren't shown <img width="404" height="327" alt="Image" src="https://github.com/user-attachments/assets/f4ba86a9-3d9e-4269-8f40-0fb0b4146c00" /> * Add a non whitespace character, the whitespaces appear <img width="459" height="325" alt="Image" src="https://github.com/user-attachments/assets/5aff3d38-ea03-4fe9-a0c0-f81867ef8611" /> ### Expected Behavior * `End` key moves the cursor to the end of line * Whitespaces don't turn invisible at the end of line ### Operating System Windows 10 ### AppFlowy Version(s) 0.11.3 ### Screenshots _No response_ ### Additional Context _No response_
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#3900
No description provided.