Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
03fb1fd7
Unverified
Commit
03fb1fd7
authored
Dec 16, 2017
by
Rémi Verschelde
Committed by
GitHub
Dec 16, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14613 from voithos/fold-jump-bugfix
Account for folded code blocks when navigating via members list
parents
2e21a427
f139d0e4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
script_editor_plugin.cpp
editor/plugins/script_editor_plugin.cpp
+4
-4
script_text_editor.cpp
editor/plugins/script_text_editor.cpp
+0
-4
No files found.
editor/plugins/script_editor_plugin.cpp
View file @
03fb1fd7
...
...
@@ -1329,12 +1329,12 @@ void ScriptEditor::_members_overview_selected(int p_idx) {
if
(
!
se
)
{
return
;
}
Dictionary
state
;
state
[
"scroll_position"
]
=
members_overview
->
get_item_metadata
(
p_idx
);
// Go to the member's line and reset the cursor column. We can't just change scroll_position
// directly, since code might be folded.
se
->
goto_line
(
members_overview
->
get_item_metadata
(
p_idx
));
Dictionary
state
=
se
->
get_edit_state
();
state
[
"column"
]
=
0
;
state
[
"row"
]
=
members_overview
->
get_item_metadata
(
p_idx
);
se
->
set_edit_state
(
state
);
se
->
ensure_focus
();
}
void
ScriptEditor
::
_help_overview_selected
(
int
p_idx
)
{
...
...
editor/plugins/script_text_editor.cpp
View file @
03fb1fd7
...
...
@@ -537,10 +537,6 @@ void ScriptTextEditor::set_edit_state(const Variant &p_state) {
code_editor
->
get_text_edit
()
->
cursor_set_line
(
state
[
"row"
]);
code_editor
->
get_text_edit
()
->
set_v_scroll
(
state
[
"scroll_position"
]);
code_editor
->
get_text_edit
()
->
grab_focus
();
//int scroll_pos;
//int cursor_column;
//int cursor_row;
}
String
ScriptTextEditor
::
get_name
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment