branch: scratch/editorconfig-cc
commit 977f54b25154aee5c4685d516b311e77ff4c7b2e
Author: 10sr <8slashes+...@gmail.com>
Commit: Stefan Monnier <monn...@iro.umontreal.ca>

    Copy properties alists before using them
---
 editorconfig-core-handle.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/editorconfig-core-handle.el b/editorconfig-core-handle.el
index a80223056a..0d664cbdc2 100644
--- a/editorconfig-core-handle.el
+++ b/editorconfig-core-handle.el
@@ -86,7 +86,7 @@ The list returned will be ordered by the lines they appear.
 
 If HANDLE is nil return nil."
   (when handle
-    (mapcar 'cdr
+    (mapcar (lambda (prop) (copy-alist (cdr prop)))
       (cl-remove-if-not (lambda (prop)
                           (editorconfig-core-handle--fnmatch-p file
                             (car prop)

Reply via email to