chiark / gitweb /
Fix handling of newlines in is_char_boundary.
authorSimon Tatham <anakin@pobox.com>
Tue, 2 Jan 2024 17:09:30 +0000 (17:09 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 2 Jan 2024 17:30:18 +0000 (17:30 +0000)
commit050e297269134eb2ec2c879eef2be5fcf9680e95
tree5c0f052517108d2452065c497126d3061858107a
parent995685a2841e17e0d72d3cd82b8b411f15f244a5
Fix handling of newlines in is_char_boundary.

Newlines have width 0, so we were mis-classifying them as a combining
character, causing the point just before one to be considered not a
character boundary!
src/editor.rs