diff options
author | Skyler Hawthorne | 2022-01-17 15:39:12 +0000 |
---|---|---|
committer | GitHub | 2022-01-17 15:39:12 +0000 |
commit | 56a9ce5d8334e82bffb56986cef554c2ac81268f (patch) | |
tree | 384624f077d1a2c200fe6cc204094e765b8fe140 /screenshot.png | |
parent | 8ea5742b0899992cd7453c70a8a06cb76a703fdf (diff) |
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
Diffstat (limited to 'screenshot.png')
0 files changed, 0 insertions, 0 deletions