Toggle comments for empty single line selections (#2594)

This commit is contained in:
Kevin Hovsäter 2023-06-13 20:15:11 +02:00 committed by GitHub
commit b365e48ff0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 84 additions and 66 deletions

View file

@ -5496,7 +5496,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;
}