Skip to content

"sizeof()" snippet does not expand correctly in Helix 25.01 #12599

@ZennMystic

Description

@ZennMystic

Summary

I have never done this before, so sorry if I did wrong or wrong place. No offense intend.

In Helix 25.01, when selecting the sizeof(expression-or-type) snippet, the placeholder text expression-or-type does not get replaced when typing a value. This results in incorrect code like sizeof(numberexpression-or-type) instead of sizeof(number).

This issue does not occur in versions 24.03 and 24.07.

Steps to Reproduce:

Open a C file in Helix 25.01.
Type siz and select the sizeof(expression-or-type) snippet.
Attempt to replace the placeholder.
Notice that the placeholder remains (sizeof(numberexpression-or-type)).

Expected Behavior:

The snippet should correctly replace the placeholder, resulting in sizeof(number).

Environment:

Helix Version: 25.01
OS: Debian 12
Install Method: Nix

Image

Image

Image

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

Linux

Terminal Emulator

wezterm

Installation Method

nixpks

Helix Version

helix 25.01

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