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

Opening helix with a directory as the first argument does not load .helix/config.toml correctly #8469

Closed
bjorn-ove opened this issue Oct 5, 2023 · 1 comment
Labels
C-bug Category: This is a bug

Comments

@bjorn-ove
Copy link
Contributor

Summary

The config is loaded before the working directory is changed during load, hence the wrong directory is checked for .helix/config.toml

let config = match Config::load_default() {

I can fix this, but wanted to know if there are some caveats first.

Reproduction Steps

I tried this:

  1. hx <dir> where the directory contains .helix/config.toml

I expected this to happen:

The config is loaded

Instead, this happened:

The config is not loaded

Helix log

Link to where the bug is in the source code is provided in the description

Platform

All

Terminal Emulator

All

Helix Version

master (68fce3e)

@the-mikedavis
Copy link
Member

Closed by #8498

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

2 participants