Skip to content

Editor pane display and handling is broken for long lines and filled editor pane #4

Description

@hopsGH

If you type a line longer/wider than the editor pane the text (word) wraps (as expected) to the next line but the cursor jams at the end of the line on the rhs of the pane.

Cursor movement down past any such auto wrapped lines has any typed text appear positioned out of (line) sync with the cursor position.
(i.e correct column wrong line - its out by the number of wrapped lines).

Cursor positioning isnt accounting for /handling the auto wrap/extra lines containing the wrapped text.

The out of position char insert is correctable by inserting a hard Enter/nl before where the line wraps
so a simple fix might be to insert a hard nl when the line wraps.

Theres a similar display issue if your editor pane page contains more lines than the editor pane. The status line at the bottom of the pane ends up
overwriting the (wrongly displayed) final line at the bottom of the pane) as you type and theres some other rolling scrolling redisplay failures
that also happen with auto scrolling around that boundary....

Platform Windows10 Windows terminal and wezterm (actually every terminal I tried it on)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions