You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
helix/helix-term/tests/test
Mike Trinkala 9267343830
Fix panic when using surround_replace/delete (#9796)
1. Create a document containing `{A}`
1. C-w v # vsplit
1. gl    # goto_line_end
1. b     # move_prev_word_start
1. `     # switch_to_lowercase
1. mrm(  # surround replace
1. C-w v # vsplit

In the debug build surround_replace/delete will immedately assert with
`assertion failed: last <= from', transaction.rs:597:13`. The splits and
lowercase conversion are not needed to trigger the bug.

In the release build the surround becomes `)a(` and the last vsplit
causes the transaction to panic.
`internal error: entered unreachable code:
(Some(Retain(18446744073709551573)))', transaction.rs:185:46`

Since the selection direction is backwards get_surround_pos returns the
pairs reversed but the downstream code assumes they are in the forward
direction.
9 months ago
..
commands Add glob file type support (#8006) 10 months ago
languages Fix YAML auto indent 1 year ago
auto_indent.rs migrate test_with_config to use AppBuilder 2 years ago
auto_pairs.rs Add config for default line ending (#5621) 1 year ago
commands.rs Fix panic when using join_selections_space (#9783) 9 months ago
helpers.rs Add glob file type support (#8006) 10 months ago
movement.rs Fix panic when using surround_replace/delete (#9796) 9 months ago
prompt.rs flush writes on force quit (#4397) 2 years ago
splits.rs Create helix-stdx crate for stdlib extensions 11 months ago