diff --git a/collects/framework/private/frame.ss b/collects/framework/private/frame.ss index e1db4bb9ab..e83f27b278 100644 --- a/collects/framework/private/frame.ss +++ b/collects/framework/private/frame.ss @@ -1763,7 +1763,7 @@ [top-searching-edit (get-searching-text)]) (when top-searching-edit (let ([searching-edit (let ([focus-snip (send top-searching-edit get-focus-snip)]) - (if focus-snip + (if (and focus-snip (is-a? focus-snip editor-snip%)) (send focus-snip get-editor) top-searching-edit))]