mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
Fix toggle_comments command on multiple selections (#1882)
This commit is contained in:
parent
d962e06e91
commit
6b80cb8a77
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user