mirror of https://github.com/godotengine/godot
Merge c15c87c84e into 15ff450680
This commit is contained in:
commit
66cdd2b084
|
|
@ -1343,7 +1343,9 @@ void CodeTextEditor::toggle_inline_comment(const String &delimiter) {
|
|||
|
||||
if (is_commented) {
|
||||
int delimiter_column = text_editor->get_line(line).find(delimiter);
|
||||
text_editor->remove_text(line, delimiter_column, line, delimiter_column + delimiter.length());
|
||||
if (delimiter_column != -1) {
|
||||
text_editor->remove_text(line, delimiter_column, line, delimiter_column + delimiter.length());
|
||||
}
|
||||
} else {
|
||||
text_editor->insert_text(delimiter, line, text_editor->get_first_non_whitespace_column(line));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue