In the options menu in the script editor, click/uncheck "Find selection"

From versions.txt

03/06/2004 - mIRC v6.15

Changes:
..
55. Added "Find selection" option to Editor dialog, toggles find dialog behaviour of using text under cursor.