summaryrefslogtreecommitdiffstats
path: root/generic/tkText.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tkText.c')
-rw-r--r--generic/tkText.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/generic/tkText.c b/generic/tkText.c
index 62de1af..09e656f 100644
--- a/generic/tkText.c
+++ b/generic/tkText.c
@@ -1374,15 +1374,13 @@ TextWidgetObjCmd(
result = TextPeerCmd(textPtr, interp, objc, objv);
break;
case TEXT_PENDINGSYNC: {
- int number;
-
if (objc != 2) {
Tcl_WrongNumArgs(interp, 2, objv, NULL);
result = TCL_ERROR;
goto done;
}
- number = TkTextPendingsync(textPtr);
- Tcl_SetObjResult(interp, Tcl_NewIntObj(number));
+ Tcl_SetObjResult(interp,
+ Tcl_NewBooleanObj(TkTextPendingsync(textPtr)));
break;
}
case TEXT_REPLACE: {