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

**/b/*.txt does not match b/c.txt #239

Open
divVerent opened this issue Jun 5, 2024 · 0 comments
Open

**/b/*.txt does not match b/c.txt #239

divVerent opened this issue Jun 5, 2024 · 0 comments
Labels

Comments

@divVerent
Copy link

I built the following structure:

cd /tmp
mkdir -p a/b
cat > a/.editorconfig <<EOF
[**/b/**.txt]
indent_size = 42
tab_width = 7
EOF
cd a/b
touch c.txt

The editorconfig command line tool applies the settings:

$ editorconfig $PWD/c.txt
indent_size=42
tab_width=7

However, editorconfig-vim does not interpret this:

$ vim c.txt
:set sw? ts?
shiftwidth=8 tabstop=8

If the .editorconfig had a [b/**.txt] section instead, it'll work.

I have not tracked this down further, as it has an effective workaround for me. Nevertheless, logging this bug anyway. I do wonder if this is related to the use of l:config_dirname that I also found in issue #238 - it seems there's simply a difference in how ** is interpreted in section names.

@cxw42 cxw42 added the Bug label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants