Skip to content

Repeated Vim copying hangs the IDE #170

Closed

Description

@zhengqunkoo

What happened

dw..... (with . key held down) in Vim mode hangs the IDE

rune-repeated-copying-hangs-the-IDE.mp4

As #144 states (emphasis mine),

Out of scope (follow-ups)

In-process clipboard. Rune shells out to wl-copy/wl-paste on Wayland
(internal/text/system_clipboard.go)
, which keeps working.

Too fast shelling out to too many subprocesses is probably the issue

What you expected

dw.... is a common workflow in Vim. I expected Rune to delete the words without hanging.

Steps to reproduce

  1. Open a file in Vim mode
  2. Go to a line with many words
  3. dw copies a word to the Wayland clipboard
  4. Hold down . to repeat the dw action. This hangs the Rune IDE

Area

Other / not sure

Rune version

v1.2.1-199-g52aaec49

OS and architecture

Ubuntu 26.04.1 Wayland

Shell

No response

Logs, crash report, or screenshots

Relevant configuration

Checks

  • I searched existing issues and this is not a duplicate.
  • I can reproduce this on the latest released version.

Activity

  1. added
    bug
    on Sep 30, 2026
  2. santhiprakash commented on Oct 1, 2026

    @santhiprakash
    Contributor

    A fix for this is up in #171 — OS clipboard writes now run on a worker goroutine behind a last-copy-wins slot, so a held . burst queues at most one extra wl-copy write instead of one per repeat and the event loop never blocks on clipboard I/O.

    It's approved and pending your verification before merge — if you can build that branch (gh pr checkout 171, then make rune) and confirm the held-. hang is gone on your Wayland setup, that would close this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions