branch: elpa/projectile
commit 1a0c271589259ec7dcb4ed3c62c3c29840921f40
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>
Use mapcan instead of mapcar in cmake-command-presets
mapcar wraps each recursive result in a list, producing nested lists
that only work because flatten-tree compensates downstream. mapcan
properly concatenates the results into a flat list.
---
projectile.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/projectile.el b/projectile.el
index 57b6ce489e..dfff970b91 100644
--- a/projectile.el
+++ b/projectile.el
@@ -3327,7 +3327,7 @@ it acts on the current project."
(when-let* ((preset (projectile--cmake-read-preset (projectile-expand-root
filename))))
(append
(projectile--cmake-command-presets-shallow filename command-type)
- (mapcar
+ (mapcan
(lambda (included-file) (projectile--cmake-command-presets
(expand-file-name included-file
(file-name-directory filename))
command-type))