Skip to content

Use cursor-x-coordinate instead of byte_pointer in em_exchange_mark#868

Open
tompng wants to merge 1 commit intoruby:masterfrom
tompng:fix_em_exchange_mark_crash
Open

Use cursor-x-coordinate instead of byte_pointer in em_exchange_mark#868
tompng wants to merge 1 commit intoruby:masterfrom
tompng:fix_em_exchange_mark_crash

Conversation

@tompng
Copy link
Member

@tompng tompng commented Nov 19, 2025

Fixes #794
Marked byte_position could be an invalid byte position when the marked line is edited.
Use cursor position and move to the nearest valid position instead.

Marked byte_position could be an invalid byte position when the marked line is edited.
Use cursor position and move to the nearest valid position instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

em_exchange_mark has a possibility to set invalid byte_pointer

1 participant