summaryrefslogtreecommitdiff
blob: d3dc81241a5ea98a46cb9e024184fef77588b72a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From 8b533e933f1e4904daae72e9d84f939cd18ffca8 Mon Sep 17 00:00:00 2001
From: Chris White <cxwembedded@gmail.com>
Date: Sat, 20 Jul 2019 13:14:57 -0400
Subject: [PATCH] '?' wildcard does not match '/' (fixes #124)

---
 autoload/editorconfig_core/fnmatch.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/autoload/editorconfig_core/fnmatch.vim b/autoload/editorconfig_core/fnmatch.vim
index 14833bf0..6f60db5d 100644
--- a/autoload/editorconfig_core/fnmatch.vim
+++ b/autoload/editorconfig_core/fnmatch.vim
@@ -199,7 +199,7 @@ function! editorconfig_core#fnmatch#translate(pat, ...)
             endif
 
         elseif l:current_char ==# '?'
-            let l:result .= '\_.'
+            let l:result .= '\_[^/]'
 
         elseif l:current_char ==# '['
             if l:in_brackets