try to fix this

This commit is contained in:
Jon Doe 2020-09-25 21:15:38 +02:00 committed by Maciej Bonin
parent 4a70c00991
commit 2cf20fd24d

View File

@ -6228,7 +6228,11 @@ proc inspect args {
if {[llength [info commands [escape_glob $proc]]] == 1} {
src $proc
} elseif {[llength $procs] == 0} {
if [llength [set handler [apply unknown:handler_for $args]]] {
src [lindex $handler 0]
} else {
error "\"$proc\" isn't a procedure"
}
} elseif {[llength $procs] == 1} {
src [first $procs]
} else {