aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.dev>2026-02-28 10:43:09 +0200
committerBozhidar Batsov <bozhidar@batsov.dev>2026-02-28 10:51:37 +0200
commit1a0c271589259ec7dcb4ed3c62c3c29840921f40 (patch)
treef0fe8704593ae033d5b5e85c4723d8a523145396
parentd91744559890dccafba76136f75218a10ab2a148 (diff)
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.
-rw-r--r--projectile.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/projectile.el b/projectile.el
index 57b6ce4..dfff970 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))