helix-mirror/helix-core
Skyler Hawthorne 56a9ce5d83
fix(auto_pairs): fix auto pairs with crlf (#1470)
Auto pairs were resulting in incorrect ranges in the resulting when the
line terminators are CRLF (i.e. Windows). It turns out this is because
when we were checking if the selection was a single-width cursor, it
incorrectly assumed that this would be a single char. This is not the
case, as a cursor can cover a multi-code point grapheme. Therefore,
we must instead explicitly work with and check graphemes to determine
if the cursor should move or extend the selection.

Fixes #1436
2022-01-18 00:39:12 +09:00
..
src fix(auto_pairs): fix auto pairs with crlf (#1470) 2022-01-18 00:39:12 +09:00
.gitignore Initial import. 2020-05-20 18:14:51 +09:00
Cargo.toml Release 0.6 2022-01-04 18:54:37 +09:00