aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);