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, 1 insertions, 5 deletions
diff --git a/generic/tkText.c b/generic/tkText.c
index 2c7eec3..9c436c6 100644
--- a/generic/tkText.c
+++ b/generic/tkText.c
@@ -6675,11 +6675,7 @@ TkpTesttextCmd(
if (Tcl_GetCommandInfo(interp, argv[1], &info) == 0) {
return TCL_ERROR;
}
- if (info.isNativeObjectProc) {
- textPtr = info.objClientData;
- } else {
- textPtr = info.clientData;
- }
+ textPtr = info.objClientData;
len = strlen(argv[2]);
if (strncmp(argv[2], "byteindex", len) == 0) {
if (argc != 5) {