From b8e1621538422a896d6a8efe67534b4b86fcd38f Mon Sep 17 00:00:00 2001 From: Nikita Revenco <154856872+NikitaRevenco@users.noreply.github.com> Date: Sat, 11 Jan 2025 16:53:49 +0000 Subject: [PATCH] chore: add comment --- helix-core/src/surround.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-core/src/surround.rs b/helix-core/src/surround.rs index 7c94140c5..e3eb168da 100644 --- a/helix-core/src/surround.rs +++ b/helix-core/src/surround.rs @@ -178,7 +178,7 @@ pub fn find_nth_pairs_pos( if Some(open) == text.get_char(pos) { // Cursor is directly on match character for which the opening and closing pairs are the same. For instance: ", ', ` // - // This is potentially ambiguous + // This is potentially ambiguous, because there's no way to know which side of the char we should be searching on. syntax .map_or_else( || match_brackets::find_matching_bracket_plaintext(text.slice(..), pos),