global pattern selector bugfix
bugfix in global pattern selector
function find_pattern removed
bugfix in local pattern selector
open line moved to macros