Skip to content

Commit

Permalink
Update comment to fit the new changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Lunarisnia committed Oct 15, 2023
1 parent b05ef22 commit 0cae763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/code_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1505,7 +1505,7 @@ void CodeTextEditor::toggle_inline_comment(const String &delimiter) {
// Empty lines should not be counted.
bool is_empty = text_editor->get_line(line).strip_edges().is_empty();
is_all_empty = is_all_empty && is_empty;
// `.substr(0, 1)` here because get_delimiter_start_key will return `##` instead of `#` when there is multiple comment delimiter in a line
// `.left(1)` here because get_delimiter_start_key will return `##` instead of `#` when there is multiple comment delimiter in a line.
if (!is_empty && (delimiter_idx == -1 || text_editor->get_delimiter_start_key(delimiter_idx).left(1) != delimiter)) {
is_commented = false;
break;
Expand Down

0 comments on commit 0cae763

Please sign in to comment.