Skip to content

editor.statusline in .helix/ duplicates elements #16166

Description

@sschuldenzucker

Summary

When editor.statusline elements are configured in the working dir's .helix/config.toml, they add to the globally-configured statusline elements. Expected is that they replace them instead.

This is a bit of a matter of user expectations, but I feel my expectation is the right one and this behavior is unintended.

Reproduction Steps

I tried this:

  1. Use a blank ~/.config/config.toml (or use helix' --config option) with the following content:
[editor.statusline]
right = ["file-line-ending"]
  1. In the working dir, in .helix/config.toml put the same file. (or a different configuration)

  2. Start helix and look at the right status line.

I expected this to happen:

The line ending marker should show only once because editor.statusline.right is overwritten in the local .helix/config.toml

Instead, this happened:

The line ending marker is shown twice.

Helix log

No response

Platform

macOS

Terminal Emulator

kitty 0.37.0

Installation Method

brew

Helix Version

25.07.1

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