Skip to content

Closing internal help (class reference) do not returns to original file #107911

Open
@gshadows

Description

@gshadows

Tested versions

Reproducible in v4.4.1.stable.official [49a5bc7]

System information

Godot v4.4.1.stable - Windows 11 (build 26100) - Multi-window, 2 monitors - OpenGL 3 (Compatibility) - NVIDIA GeForce RTX 4060 Ti (NVIDIA; 32.0.15.7640) - Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz (16 threads)

Issue description

When editing multiple scripts, it is expected that when you close script file in script editor, previously opened file displayed. It is true for user scripts, but have an issue if trying to open Godot class reference: when closing this help, editor can return to the script, that is 1 position above in the list of scrips on panel.
This is not a high priority issue but still somewhat annoying when opening class references frequently.

Steps to reproduce

  1. Open multiple scripts in script editor.
  2. Select non-first (not top) script in list.
  3. Ctrl-click on any Godot function to open class help reference.
  4. Close help window by shortcut or by right-click + "Close" in scripts list panel.
  5. Editor should open a script one line above the one you Ctrl-clicked for help from.
  6. If not reproduced - repeat from step 3 one more time. For me it is 100% reproducible on 2nd time, but rarely reproduced at 1st time.

Minimal reproduction project (MRP)

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions