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-core/src
Mike Trinkala e27b04735c
Fix panic in select_textobject_around (#9832)
Test Document
-------------
```
a)b
```

Steps to Reproduce
------------------
1. %   # select_all
1. ms( # surround_add
1. mam # select_textobject_around

Debug and Release
-----------------
`thread 'main' panicked at 'Attempt to index past end of RopeSlice:
char index 7, RopeSlice char length 6', ropey-1.6.1/src/slice.rs:796:13`

Description
-----------
An index was selected beyond the end of the slice with chars_at. The fix
adds a guard check to `find_nth_open_pair`, like in the other find_nth*
functions.
7 months ago
..
doc_formatter Feat: LSP Type Hints (#5934) 2 years ago
increment Fix new clippy lints (#5892) 2 years ago
auto_pairs.rs Fix erroneous indent between closers of auto-pairs (#5330) 2 years ago
chars.rs Temporarily turn on unicode-lines 3 years ago
comment.rs toggling of block comments (#4718) 7 months ago
config.rs Add glob file type support (#8006) 8 months ago
diagnostic.rs make diagnostics stick to word boundaries 9 months ago
diff.rs delete outdated reference to cessen/ropey#25 (#4928) 2 years ago
doc_formatter.rs rework positioning/rendering and enable softwrap/virtual text (#5420) 2 years ago
fuzzy.rs Don't use word splitting during fuzzy matching (#8192) 1 year ago
graphemes.rs Prevent GraphemeStrs created from Strings from leaking (#7920) 1 year ago
history.rs Prefer RopeSlice to &Rope in helix_core::syntax 1 year ago
indent.rs toggling of block comments (#4718) 7 months ago
lib.rs toggling of block comments (#4718) 7 months ago
line_ending.rs Add config for default line ending (#5621) 1 year ago
macros.rs Split parts of helix-term into helix-view. 4 years ago
match_brackets.rs Use injection syntax trees for bracket matching 8 months ago
movement.rs Respect injections in movement::move_parent_node_end 8 months ago
object.rs Fix edge-case in tree-sitter expand_selection selection command (#2877) 2 years ago
position.rs Fix typos (#6643) 2 years ago
rope_reader.rs search buffer contents during global search (#5652) 1 year ago
search.rs Jump to the next number on the line before incrementing (#1778) 3 years ago
selection.rs fix split_on_newline (#9756) 7 months ago
shellwords.rs Fix typos (#6643) 2 years ago
surround.rs Fix panic in select_textobject_around (#9832) 7 months ago
syntax.rs toggling of block comments (#4718) 7 months ago
test.rs fix test::plain 2 years ago
text_annotations.rs Fix typos (#6643) 2 years ago
textobject.rs fix test::plain 2 years ago
transaction.rs make diagnostics stick to word boundaries 9 months ago
wrap.rs don't break on hyphen with :reflow (#8569) 11 months ago