CodeEditor: Make possible to select and copy error text

This commit is contained in:
Danil Alexeev authored and Rémi Verschelde committed 2025-06-12 22:06:09 +02:00
1 parent 03bd8ba9c2
commit db9b8ff003
7 files changed
+150 -81

No files matched your search

+1 -1
View File
@@ -200,7 +200,7 @@ void TextEditor::_validate_script() {
code_editor->set_error("");
if (json_file->parse(te->get_text(), true) != OK) {
code_editor->set_error(json_file->get_error_message());
code_editor->set_error(json_file->get_error_message().replace("[", "[lb]"));
code_editor->set_error_pos(json_file->get_error_line(), 0);
te->set_line_background_color(code_editor->get_error_pos().x, EDITOR_GET("text_editor/theme/highlighting/mark_color"));
}