Skip to content

Cursor/caret becomes stuck after foreign drag event #6715

Open
@H4CKY54CK

Description

@H4CKY54CK

Description of the bug

After dragging text (or a hyperlink, though in this context it might be the same thing, idk), the caret stops following its actual position in the document. In other words, it becomes "stuck". It remains in its last position prior to the drag event. If text is inserted on the same line before the caret, then the caret gets moved along with the text.

Steps to reproduce

  1. Start ST in safe mode
  2. Either highlight some text in a different window (I've tried both Discord and Chromium) and then drag the selected text into ST. Dragging a link (i.e. a link to a YouTube video, forums post, etc) into ST also works.
  3. Type something and then use the arrow keys to move the caret to the left. The cursor is now "stuck".

Expected behavior

For the cursor to not be stuck.

Actual behavior

The cursor becomes stuck.

Sublime Text build number

4200

Operating system & version

Arch Linux

(Linux) Desktop environment and/or window manager

KDE/Plasma X11

Additional information

Architecture: x86_64
OS: Arch Linux
Kernel: 6.15.2-zen1-1-zen
DE: KDE/Plasma 6.3.5-1 (kwin is also 6.3.5-1)
WM: X11 21.1.18

Tested on Sublime Text (with and without safe mode):

  • 4175 dev
  • 4200 stable

OpenGL context information

Not super relevant, but here is the OpenGL context information the form is requesting anyway.

OpenGL Context Information:
  GL API Version: 4.1.0 NVIDIA 575.64
  GLSL Version: 4.10 NVIDIA via Cg compiler
  Vendor: NVIDIA Corporation
  Renderer: NVIDIA GeForce RTX 3060/PCIe/SSE2

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