diff options
author | Danilo Spinella | 2022-04-05 01:01:58 +0000 |
---|---|---|
committer | GitHub | 2022-04-05 01:01:58 +0000 |
commit | 6b80cb8a7750885abf761d1b65e5c0065ae1640b (patch) | |
tree | 4c0e3a5bb998d3f87bdb85f15de9cff151e0c465 | |
parent | d962e06e91b997813092cc5e49a800cc9d4f0ee1 (diff) |
Fix toggle_comments command on multiple selections (#1882)
-rw-r--r-- | helix-core/src/comment.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-core/src/comment.rs b/helix-core/src/comment.rs index b22a95a6..44f6cdfe 100644 --- a/helix-core/src/comment.rs +++ b/helix-core/src/comment.rs @@ -72,7 +72,7 @@ pub fn toggle_line_comments(doc: &Rope, selection: &Selection, token: Option<&st let end = (end + 1).min(text.len_lines()); lines.extend(start..end); - min_next_line = end + 1; + min_next_line = end; } let (commented, to_change, min, margin) = find_line_comment(token, text, lines); |