aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/jsdoc
diff options
context:
space:
mode:
authorMike Trinkala2024-03-07 19:37:01 +0000
committerGitHub2024-03-07 19:37:01 +0000
commite27b04735c630140b45ac9fab1b3087ae831f34a (patch)
tree6c7731feab53a6aff3abdeb7dca3b64d2cd37a1e /runtime/queries/jsdoc
parentcb01e52cd8b8021686ee98dd4d53dff8cdc826a9 (diff)
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.
Diffstat (limited to 'runtime/queries/jsdoc')
0 files changed, 0 insertions, 0 deletions