Skip to content

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

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

Activity

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

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