Skip to content

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

Description

@divVerent

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions