You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-vim/editorconfig-vim/files/editorconfig-vim-1.0.0_beta...

23 lines
808 B

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