Skip to content

Copying text in the types widget type definition box sometimes misses the final character #6520

@WeiN76LQh

Description

@WeiN76LQh

Version and Platform (required):

  • Binary Ninja Version: 4.3.7094-dev (0f9d9b3f)
  • OS: macOS
  • OS Version: 15.2
  • CPU Architecture: M1

Bug Description:
When highlighting part of a word or line in the types widget in the type definition box, and copying it to the clipboard the last character is not copied. Sometimes it can occur when highlighting the entire word or line but that seems to be less likely. I've noticed that copying works correctly when highlighting does the snapping feature when it will snap to cover the whole word or line.

Steps To Reproduce:

  1. Go to the types widget.
  2. Select any type to view its type definition.
  3. Highlight part of any word but make sure it doesn't snap to highlight the entire word.
  4. Copy the text using right-click copy or using the OS copy keyboard shortcut.
  5. Paste the text in the Python console and notice the final character was not copied.

Expected Behavior:
Copies all of the highlighted text into the clipboard.

Additional Information:
This bug has been around for a long time its just minor enough I haven't bothered reporting it until now. Occassionally gets me when copying type names.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: UIIssue needs changes to the user interfaceEffort: TrivialIssues require < 1 day of workImpact: LowIssue is a papercut or has a good, supported workaroundUI: TypesIssues with the Types widget

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions