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.
2024-03-07 13:37:01 -06:00
..
doc_formatter Feat: LSP Type Hints (#5934) 2023-03-11 11:32:14 +09:00
increment Fix new clippy lints (#5892) 2023-02-09 16:27:08 -06:00
auto_pairs.rs
chars.rs
comment.rs toggling of block comments (#4718) 2024-02-27 22:36:25 +09:00
config.rs Add glob file type support (#8006) 2024-02-11 18:24:20 +01:00
diagnostic.rs make diagnostics stick to word boundaries 2023-12-27 15:28:14 +09:00
diff.rs
doc_formatter.rs rework positioning/rendering and enable softwrap/virtual text (#5420) 2023-02-01 02:03:19 +09:00
fuzzy.rs Don't use word splitting during fuzzy matching (#8192) 2023-09-06 23:03:48 +09:00
graphemes.rs Prevent GraphemeStrs created from Strings from leaking (#7920) 2023-08-12 20:13:06 -05:00
history.rs Prefer RopeSlice to &Rope in helix_core::syntax 2023-07-27 11:50:19 +09:00
indent.rs toggling of block comments (#4718) 2024-02-27 22:36:25 +09:00
lib.rs toggling of block comments (#4718) 2024-02-27 22:36:25 +09:00
line_ending.rs Add config for default line ending (#5621) 2023-06-16 12:02:15 -05:00
macros.rs
match_brackets.rs Use injection syntax trees for bracket matching 2024-01-28 18:13:33 +09:00
movement.rs Respect injections in movement::move_parent_node_end 2024-01-28 18:13:33 +09:00
object.rs
position.rs Fix typos (#6643) 2023-04-07 23:10:38 +08:00
rope_reader.rs search buffer contents during global search (#5652) 2023-07-11 21:26:11 +09:00
search.rs
selection.rs fix split_on_newline (#9756) 2024-02-29 10:47:41 +09:00
shellwords.rs Fix typos (#6643) 2023-04-07 23:10:38 +08:00
surround.rs Fix panic in select_textobject_around (#9832) 2024-03-07 13:37:01 -06:00
syntax.rs toggling of block comments (#4718) 2024-02-27 22:36:25 +09:00
test.rs fix test::plain 2023-03-20 18:34:40 -05:00
text_annotations.rs Fix typos (#6643) 2023-04-07 23:10:38 +08:00
textobject.rs fix test::plain 2023-03-20 18:34:40 -05:00
transaction.rs make diagnostics stick to word boundaries 2023-12-27 15:28:14 +09:00
wrap.rs don't break on hyphen with :reflow (#8569) 2023-10-21 07:58:36 -05:00