summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-11-17 08:46:11 -0800
committerKaz Kylheku <kaz@kylheku.com>2018-11-17 08:46:11 -0800
commitd656e64b6815678b87de402485cdec5222bce88b (patch)
treed437d539c916c7d831663f818da39a2fde093b8d /lib.c
parent877cb438262b5ab98e25ae88fa66d9f22aace9cd (diff)
downloadtxr-d656e64b6815678b87de402485cdec5222bce88b.tar.gz
txr-d656e64b6815678b87de402485cdec5222bce88b.tar.bz2
txr-d656e64b6815678b87de402485cdec5222bce88b.zip
copy: call copy-fun for functions.
* lib.c (copy): Handle FUN type through copy_fun. * txr.1: Documented.
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib.c b/lib.c
index 69712f00..3b9262b1 100644
--- a/lib.c
+++ b/lib.c
@@ -9924,6 +9924,8 @@ val copy(val seq)
return copy_vec(seq);
case BUF:
return copy_buf(seq);
+ case FUN:
+ return copy_fun(seq);
case COBJ:
if (seq->co.cls == hash_s)
return copy_hash(seq);