on master help sign in
Fix toggle_comments command on multiple selections (#1882)
6b80cb8Danilo Spinella
helix-core/src/comment.rs+1−1
@@ -72,7 +72,7 @@ pub fn toggle_line_comments(doc: &Rope, selection: &Selection, token: Option<&st
72 let end = (end + 1).min(text.len_lines());
72 let end = (end + 1).min(text.len_lines());
73
73
74 lines.extend(start..end);
74 lines.extend(start..end);
75− min_next_line = end + 1;
75+ min_next_line = end;
76 }
76 }
77
77
78 let (commented, to_change, min, margin) = find_line_comment(token, text, lines);
78 let (commented, to_change, min, margin) = find_line_comment(token, text, lines);