Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smart tab moves cursor to grandparent node instead of parent node #12612

Open
adamkpickering opened this issue Jan 20, 2025 · 0 comments
Open
Labels
C-bug Category: This is a bug

Comments

@adamkpickering
Copy link

adamkpickering commented Jan 20, 2025

Summary

When I am writing Go code, hitting tab (which should trigger smart tab) within a string sometimes sends the cursor to the parent node, and sometimes sends the cursor to the grandparent node. I don't see any pattern here: this happens when hx is run within both bash and nushell, and happens whether whitespace is before the cursor or not.

Reproduction Steps

https://asciinema.org/a/XKG55rGx7V81wzrm6rtfkElRA

Here is the code:

package main

import (
        "fmt"
        "os"
)

func main() {
        contents, err := os.ReadFile("test.txt")
}

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

helix.log

Platform

Linux

Terminal Emulator

wezterm 20240203-110809-5046fc22

Installation Method

source

Helix Version

helix 25.01.1 (e7ac2fc)

@adamkpickering adamkpickering added the C-bug Category: This is a bug label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

1 participant