Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(auto_pairs): fix auto pairs with crlf #1470

Merged
merged 1 commit into from
Jan 17, 2022

Commits on Jan 16, 2022

  1. fix(auto_pairs): fix auto pairs with crlf

    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 helix-editor#1436
    dead10ck committed Jan 16, 2022
    Configuration menu
    Copy the full SHA
    d213727 View commit details
    Browse the repository at this point in the history