diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-06-08 12:41:00 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-06-08 12:41:00 (GMT) |
commit | 50d501f90b85fcd0a3beaf485da84379975c9504 (patch) | |
tree | 4ed72822f24549fd22069c88ee1fc7d29bbdc45e /generic/tkText.c | |
parent | 84cfc97d7f9469cb9f4406c0f26a15941de718d6 (diff) | |
download | tk-50d501f90b85fcd0a3beaf485da84379975c9504.zip tk-50d501f90b85fcd0a3beaf485da84379975c9504.tar.gz tk-50d501f90b85fcd0a3beaf485da84379975c9504.tar.bz2 |
Fix [2790615]: "update" performs Tk callbacks in its own stack frame.
by adding TCL_EVAL_GLOBAL in a lot of places.
Diffstat (limited to 'generic/tkText.c')
-rw-r--r-- | generic/tkText.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkText.c b/generic/tkText.c index b696647..2ddfea1 100644 --- a/generic/tkText.c +++ b/generic/tkText.c @@ -5039,7 +5039,7 @@ DumpSegment( Tcl_DStringAppend(&buf, Tcl_GetString(command), -1); Tcl_DStringAppend(&buf, " ", -1); Tcl_DStringAppend(&buf, Tcl_GetString(tuple), -1); - code = Tcl_EvalEx(interp, Tcl_DStringValue(&buf), -1, 0); + code = Tcl_EvalEx(interp, Tcl_DStringValue(&buf), -1, TCL_EVAL_GLOBAL); Tcl_DStringFree(&buf); if (code != TCL_OK) { Tcl_AddErrorInfo(interp, |