Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix goto line issues in code editor #94002

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

kitbdev
Copy link
Contributor

@kitbdev kitbdev commented Jul 6, 2024

I did not change the goto line popup since I have another PR about that #91388.
Removed the p_with_error argument since it isn't used. There are some other uses of goto_line that could use the new column argument, but I'll leave that for another PR.

Copy link
Member

@Paulb23 Paulb23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good, one small note inline.

state["column"] = 0;
state["scroll_position"] = members_overview->get_item_metadata(p_idx);
se->set_edit_state(state);
CodeTextEditor *cte = se->get_code_editor();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't say I like the idea of the ScriptEditorPlugin interacting with the code editor directly, would prefer changing the API (combine them with a new arg?) or as above cast to the specific type.

@kitbdev
Copy link
Contributor Author

kitbdev commented Jul 31, 2024

Updated to use a cast, as elsewhere in ScriptEditorPlugin.

@akien-mga akien-mga requested a review from Paulb23 July 31, 2024 14:39
@akien-mga akien-mga merged commit d35bee9 into godotengine:master Aug 27, 2024
18 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants