Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-core/src/comment.rs')
| -rw-r--r-- | helix-core/src/comment.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/helix-core/src/comment.rs b/helix-core/src/comment.rs index d63d05fa..6bb1f300 100644 --- a/helix-core/src/comment.rs +++ b/helix-core/src/comment.rs @@ -204,13 +204,9 @@ pub fn find_block_comments( range: *range, start_pos, end_pos, - start_margin: selection_slice - .get_char(after_start) - .map_or(false, |c| c == ' '), + start_margin: selection_slice.get_char(after_start) == Some(' '), end_margin: after_start != before_end - && selection_slice - .get_char(before_end) - .map_or(false, |c| c == ' '), + && (selection_slice.get_char(before_end) == Some(' ')), start_token: start_token.to_string(), end_token: end_token.to_string(), }); |