Skip to content

[Alt] + [Leftarrow] at EOF breaks cursor position when word wrap is active, potential freeze #778

@PaulWendtland

Description

@PaulWendtland

When I edit a document with active word wrap, have at least one wrapped line, move my cursor to the end of the last line (end of file) and press [Alt] + [Leftarrow], the cursor jumps to the next empty line. But if I now type characters, they still appear in the previous line, dissociated from the cursor position. Alternating between [Leftarrow] and [Rightarrow] keys moves the cursor further down and increases the mismatch between displayed cursor and the position where typed characters appear.

When I then move the cursor up with [Uparrow], both the displayed cursor and the position of typed characters move up. Once the latter moves above the first line of the document, Edit freezes. Neither saving nor exiting the program is possible at this point.

[Alt] + [Leftarrow] doesn't have a keybinding and in all other cases just acts like [Leftarrow], which is also my expected behaviour in this case.

I am using Edit on Windows 11, version 1.2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-bugIt shouldn't be doing this.P-highHigh priority, fix ASAP. Example: The application crashes.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions