summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2009-12-19 14:21:59 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2009-12-19 14:21:59 (GMT)
commite3f5e21f00d98dacf701c346899ada0ef3327513 (patch)
treed3399287bc97eac2c88d646e442b4437f5a6a5a5 /generic
parent98be197b8251a58439b9b30bb3e35c3e428d5295 (diff)
downloadtcl-e3f5e21f00d98dacf701c346899ada0ef3327513.zip
tcl-e3f5e21f00d98dacf701c346899ada0ef3327513.tar.gz
tcl-e3f5e21f00d98dacf701c346899ada0ef3327513.tar.bz2
* generic/tclBasic.c: Fix for bad cmd resolution by coroutines
* tests/coroutine.test: [Bug #2917627]. Thanks to schelte for finding it.
Diffstat (limited to 'generic')
-rw-r--r--generic/tclBasic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index 1d649a1..aecdfa0 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.c
@@ -16,7 +16,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclBasic.c,v 1.435 2009/12/13 17:54:05 msofer Exp $
+ * RCS: @(#) $Id: tclBasic.c,v 1.436 2009/12/19 14:22:00 msofer Exp $
*/
#include "tclInt.h"
@@ -8869,6 +8869,7 @@ TclNRCoroutineObjCmd(
TclNRAddCallback(interp, NRCoroutineExitCallback, corPtr,
NULL, NULL, NULL);
iPtr->evalFlags |= TCL_EVAL_REDIRECT;
+ iPtr->lookupNsPtr = iPtr->varFramePtr->nsPtr;
TclNREvalObjEx(interp, cmdObjPtr, 0, NULL, 0);
return TCL_OK;