Skip to content

Missing redraw if only cursor position changes #160

@Calonca

Description

@Calonca

When only the cursor is drawn in a new position and no other text changes are made the displayed output does not get updated and the cursor stays in the previous position.

In this example below in the text field the cursor does not move when arrow keys are pressed unless the position is shown on the screen. The position text update forces the redraw.
If the arrow keys are pressed when the position is not active and the position is then activated by pressing space the cursor will jump to the intended position.
https://github.com/Calonca/ratzilla/tree/fix/cursor-movement-invisible-example/examples/cursor_test

Forcing a redraw is a workaround for the issue
72753a6

So the problem might be due to a null diff and a skipped redraw when only the cursor position is updated.

Metadata

Metadata

Assignees

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