Skip to content

Fix shortcut for Rename operates on wrong line/address (#2631)#3553

Open
0xSec1 wants to merge 1 commit intorizinorg:devfrom
0xSec1:fix-rename-shortcut-2631
Open

Fix shortcut for Rename operates on wrong line/address (#2631)#3553
0xSec1 wants to merge 1 commit intorizinorg:devfrom
0xSec1:fix-rename-shortcut-2631

Conversation

@0xSec1
Copy link

@0xSec1 0xSec1 commented Feb 12, 2026

Your checklist for this pull request

  • I've read the guidelines for contributing to this repository
  • I made sure to follow the project's coding style
  • I've updated the documentation with the relevant information (if needed)
  • I've used AI tools to generate fully or partially these code changes and I'm sure the changes are not copyrighted by somebody else.

Detailed description

This change resolves issue #2631, where rename using shortcut operates on wrong line/address.

Problem
When a user uses shortcut for renaming(N) a function and using seek bar, seeks to a address which triggers on_seekChanged and cursor position is updated but setCurHighlightedWord which updates renaming options is not used.

Fix
This modification adds setCurHighlightedWord at current cursor so it correctly triggers renaming options.

Test plan (required)
The following is example of this bug:

before.mp4

After modification, now after seek it correctly renames line/function

after.mp4

Closing issues
closes #2631

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.

Shortcut for "Rename" operates on wrong line / address.

2 participants