X Tutup
Skip to content

Fix stale error highlighting when navigating script history#113246

Merged
Repiteo merged 1 commit intogodotengine:masterfrom
channesl:history-error
Dec 17, 2025
Merged

Fix stale error highlighting when navigating script history#113246
Repiteo merged 1 commit intogodotengine:masterfrom
channesl:history-error

Conversation

@channesl
Copy link
Contributor

Fixes: #113147

This PR fixes an issue where scripts were not being re-validated when navigating through the editor history. This caused error highlights to persist even after the underlying issue was resolved in another file.

I added a validate() call in ScriptEditor::_update_history_pos to ensure the script is re-analyzed upon history navigation, consistent with the behavior when switching tabs manually in ScriptEditor::_go_to_tab.

@AThousandShips AThousandShips added this to the 4.6 milestone Nov 28, 2025
@AThousandShips AThousandShips added the cherrypick:4.5 Considered for cherry-picking into a future 4.5.x release label Nov 28, 2025
@prvak
Copy link

prvak commented Dec 3, 2025

I can confirm, that this fixes my issue #113147

Copy link
Contributor

@kitbdev kitbdev left a comment

Choose a reason for hiding this comment

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

Makes sense, fixes the issue.

@Repiteo Repiteo merged commit e6b37bd into godotengine:master Dec 17, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Dec 17, 2025

Thanks! Congratulations on your first merged contribution! 🎉

@channesl
Copy link
Contributor Author

Thank you very much!

@akien-mga
Copy link
Member

Cherry-picked for 4.5.2.

@akien-mga akien-mga removed the cherrypick:4.5 Considered for cherry-picking into a future 4.5.x release label Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fixed errors do not disappear when navigating between files using Alt+Left Arrow

7 participants

X Tutup