Skip to content

rust-explorer: Show in folder scrolls to the file in a big folder - #250

Closed
cute-johnny wants to merge 1 commit into
Lemxy:mainfrom
cute-johnny:rust-explorer-select-scroll
Closed

cute-johnny wants to merge 1 commit into
Lemxy:mainfrom
cute-johnny:rust-explorer-select-scroll

Conversation

@cute-johnny

Copy link
Copy Markdown
Contributor

When rust-explorer is started with /select (Show in folder while no window is open), select_row ran in WM_CREATE, while the list was still 0×0, so LVM_ENSUREVISIBLE was lost: in a folder with many files the file was selected but out of view. The row is now selected from a posted WM_SELECT message, after the window is shown and sized. Show in folder with a window already open (shell_select) is unchanged.

Testing

  • Built locally with the x86_64-pc-windows-gnu toolchain (CI builds MSVC): cargo build --release with no warnings, cargo test --release in plugins/rust-explorer: 39 passed.
  • Not checked by hand yet.

🤖 Generated with Claude Code

Started with /select (Show in folder when no window is open), the file was selected in WM_CREATE while the list was still 0x0, so LVM_ENSUREVISIBLE was lost and in a big folder the file stayed out of view. It is now selected from a posted message, once the window is shown and sized.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants