aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/comment.rs
diff options
context:
space:
mode:
authorDanilo Spinella2022-04-05 01:01:58 +0000
committerGitHub2022-04-05 01:01:58 +0000
commit6b80cb8a7750885abf761d1b65e5c0065ae1640b (patch)
tree4c0e3a5bb998d3f87bdb85f15de9cff151e0c465 /helix-core/src/comment.rs
parentd962e06e91b997813092cc5e49a800cc9d4f0ee1 (diff)
Fix toggle_comments command on multiple selections (#1882)
Diffstat (limited to 'helix-core/src/comment.rs')
-rw-r--r--helix-core/src/comment.rs2
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);