godotengine / godotengine/godot

Script editor back button doesn't work as advertised (regression)

Open
#97,031 14 comments 37 reactions 0 assignees View on GitHub
confirmed discussion topic:editor
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

v4.3.stable.official [77dcf97d8] Reproducible.
v4.2 works as expected.

### System information

v4.3.stable.official [77dcf97d8] Reproducible.Compatibility
Apple M1 Max
Sonoma 14.6.1 (23G93)

### Issue description

Screenshot 2024-09-14 at 10 43 32 PM

It no longer "goes back to previous edited document" as advertised when you hover over the button.

Clicking the back button in the script editor will now go back to every single line that has been selected, even if it wasn't edited, and even if it is all in the same script!

I assume this is a bug.

But if it was intentional, please revert back. This issue removes the convenience of quickly navigating back to the previous script with 1 click. Now you might have to press the back button any number of times (dozens? in worse case) just to go back to the previous script.

### Steps to reproduce

Have 2 scripts. Make sure the scripts are somewhat long. (You can use any text and just comment it out)

Screenshot 2024-09-14 at 10 54 16 PM

Step 1: Open script 1 then open script 2.
Step 2: Click on several different lines in the text editor.
Step 3: Then press the back button.

It SHOULD go back to script 1. But actually it will go to every line you selected in step 2

Edit: Also I added a second bug with my 2nd comment - which is clearly a bug.

### Minimal reproduction project (MRP)

Use any empty project.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.