From 19f08c253aa66fc20a572c3eeb5db09875d328f7 Mon Sep 17 00:00:00 2001
From: Garth Minette <gminette@gmail.com>
Date: Thu, 25 Mar 2021 00:29:52 -0700
Subject: [PATCH] Fix typo in assemble_a_path_from_fragments()

---
 paths.scad | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/paths.scad b/paths.scad
index 036e008..28858fa 100644
--- a/paths.scad
+++ b/paths.scad
@@ -878,7 +878,7 @@ function assemble_a_path_from_fragments(fragments, rightmost=true, startfrag=0,
         let(
             // Found fragment intersects with initial path
             hitidx = select(hits,-1),
-            newpath = list_head(path,0,hitidx),
+            newpath = list_head(path,hitidx),
             newfrags = concat(len(newpath)>1? [newpath] : [], remainder),
             outpath = concat(slice(path,hitidx,-2), foundfrag)
         )