Toggle comments for empty single line selections

This commit is contained in:
Kevin Hovsäter 2023-06-09 09:58:55 +02:00
parent 6304897abc
commit a8d43c6d71
2 changed files with 52 additions and 1 deletions

View file

@ -5480,7 +5480,7 @@ impl Editor {
let mut all_selection_lines_are_comments = true;
for row in start_row..=end_row {
if snapshot.is_line_blank(row) {
if snapshot.is_line_blank(row) && start_row < end_row {
continue;
}