Skip to content

find_under_expand resets horizontal scroll #6816

@istudyatuni

Description

@istudyatuni

Description of the bug

When word wrap is disabled and you scrolled to the right, selecting several occurrences of something with ctrl+d scrolls to the left

It doesn't scroll to the left if cursors are further than 1 width apart

Steps to reproduce

  1. Start Sublime in safe mode
  2. Create line of dots with the size of 2 editor view's width
  3. "Word Wrap: Toggle"
  4. Select dot in the second quarter of line
  5. Scroll to the right
  6. Press ctrl+d

Expected behavior

Next dot is selected without scrolling to the left

Actual behavior

Next dot is selected and view is scrolled to the left

Sublime Text build number

4200

Operating system & version

NixOS unstable

(Linux) Desktop environment and/or window manager

Sway

Additional information

No response

OpenGL context information


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions