From 96bb95c8cc9f2640867d3e7592edb546e8853854 Mon Sep 17 00:00:00 2001 From: lolbinarycat Date: Fri, 12 Dec 2025 15:26:30 -0500 Subject: [PATCH] editorconfig-fnmatch: fix ** globs (#374) Cherypick of upstream commit 4af10445fcdf1c9dfa7af4f9e5bec59e8a759d6f --- lisp/editorconfig-fnmatch.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/editorconfig-fnmatch.el b/lisp/editorconfig-fnmatch.el index c230a2384c7..2e6ae466f43 100644 --- a/lisp/editorconfig-fnmatch.el +++ b/lisp/editorconfig-fnmatch.el @@ -166,7 +166,9 @@ translation is found for PATTERN." (setq pos index) (if (and (< pos length) (= (aref pattern pos) ?*)) - ".*" + (progn + (setq index (1+ index)) + ".*") "[^/]*")) (?? "[^/]")