[GH-ISSUE #8446] [Bug] Home/End is not jumping to line start in code block #3843

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

Originally created by @NyaMisty on GitHub (Jan 21, 2026).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/8446

Originally assigned to: @asjqkkkk on GitHub.

Bug Description

Similar to #4478 #8192 , but in code block. Home/End is ignoring line separators inside block, and always moves to line start/line end.

How to Reproduce

Define a code block like this

Image

Put the cursor at the beginning like above, and press End. It now goes to Line three

Image

Pressing End again, it will even goes out current block and jump into next block...

Expected Behavior

  1. The cursor should goes to line end in current block like this.
Image
  1. When the cursor is already at line start/end, Home/End should NEVER move the cursor.

Operating System

Windows

AppFlowy Version(s)

0.11.0

Screenshots

No response

Additional Context

No response

Originally created by @NyaMisty on GitHub (Jan 21, 2026). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/8446 Originally assigned to: @asjqkkkk on GitHub. ### Bug Description Similar to #4478 #8192 , but in code block. Home/End is ignoring line separators inside block, and always moves to line start/line end. ### How to Reproduce Define a code block like this <img width="423" height="300" alt="Image" src="https://github.com/user-attachments/assets/930cd69a-bb34-482b-977e-cb6e389b61a0" /> Put the cursor at the beginning like above, and press `End`. It now goes to `Line three` <img width="283" height="251" alt="Image" src="https://github.com/user-attachments/assets/8c8e5c12-38d5-4beb-ad97-5372e4625b7a" /> Pressing `End` again, it will even goes out current block and jump into next block... ### Expected Behavior 1. The cursor should goes to line end in current block like this. <img width="267" height="202" alt="Image" src="https://github.com/user-attachments/assets/88ced79f-aa05-4eca-a55f-e6ad994fc007" /> 2. When the cursor is already at line start/end, `Home/End` should NEVER move the cursor. ### Operating System Windows ### AppFlowy Version(s) 0.11.0 ### Screenshots _No response_ ### Additional Context _No response_
mirror 2026-03-23 21:33:30 +00:00
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#3843
No description provided.