about summary refs log tree commit diff
path: root/Src/options.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2012-08-21 18:03:01 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2012-08-21 18:03:01 +0000
commit6f3ff6b653ca5e6f528bc46ec6295cb6d263a9fd (patch)
tree5597e80a02d420f2ec6543f6dff0e21e14064b1b /Src/options.c
parent07fd604718b0b2202808c121f7bbcb4dce5c9ae5 (diff)
downloadzsh-6f3ff6b653ca5e6f528bc46ec6295cb6d263a9fd.tar.gz
zsh-6f3ff6b653ca5e6f528bc46ec6295cb6d263a9fd.tar.xz
zsh-6f3ff6b653ca5e6f528bc46ec6295cb6d263a9fd.zip
30633: "functions -T" only traces marked function, not called functions
Diffstat (limited to 'Src/options.c')
-rw-r--r--Src/options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/options.c b/Src/options.c
index c6db75372..609c28fd1 100644
--- a/Src/options.c
+++ b/Src/options.c
@@ -532,7 +532,7 @@ emulate(const char *zsh_name, int fully)
 	 * close enough.
 	 */
 	Shfunc shf = (Shfunc)shfunctab->getnode(shfunctab, funcstack->name);
-	if (shf && (shf->node.flags & PM_TAGGED)) {
+	if (shf && (shf->node.flags & (PM_TAGGED|PM_TAGGED_LOCAL))) {
 	    /* Tracing is on, so set xtrace */
 	    opts[XTRACE] = 1;
 	}