Skip to content

Cursor jumps after :w, after autoformatting .go file #15274

@Fiend3d

Description

@Fiend3d

Summary

Image

And if I do it again, the cursor doesn't move. If I discard the "changes" with git (it doesn't show any changes), the jumping is back. It happens often and it's super annoying.

My config is just "theme = monokai". I asked on Reddit https://www.reddit.com/r/HelixEditor/comments/1qykh0c/cursor_jumps_after_w/ and they suggested that the issue is that autoformatting changes selection. It looks random. Other text editors don't have this issue.

Reproduction Steps

I tried this:

  1. hx

I expected this to happen:

Instead, this happened:

Helix log

~/.cache/helix/helix.log
please provide a copy of `~/.cache/helix/helix.log` here if possible, you may need to redact some of the lines

Platform

Windows

Terminal Emulator

windows terminal 1.23.260121001

Installation Method

releases page

Helix Version

helix 25.07.1 (a05c151)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions