Skip to content

Broken Home/End behavior on Windows with Unix line endings #512

@kvark

Description

@kvark

Sublime Text Version

Sublime Text 4 build 4143

Rust Enhanced Version

v2.25.0

Operating system

A good example is:
OS Name Microsoft Windows 11 Home
Version 10.0.22621 Build 22621

Expected behavior

Home always brings the cursor to the start of the line. End brings it to the end of the line.

Actual behavior

Sometimes the cursor jumps to the start of the previous line, or the end of the next line instead.
Very annoying.

Steps to reproduce

Edit a file in Unix line endings.
Example - original cursor position:
st4-before
Position after hitting Home:
st4-after

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions