aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authorSkyler Hawthorne2022-01-17 15:39:12 +0000
committerGitHub2022-01-17 15:39:12 +0000
commit56a9ce5d8334e82bffb56986cef554c2ac81268f (patch)
tree384624f077d1a2c200fe6cc204094e765b8fe140 /Cargo.toml
parent8ea5742b0899992cd7453c70a8a06cb76a703fdf (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 'Cargo.toml')
0 files changed, 0 insertions, 0 deletions