mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-25 19:03:30 +04:00
56a9ce5d83
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 |
||
---|---|---|
.. | ||
src | ||
.gitignore | ||
Cargo.toml |