Fix the select all occurrences command

Need to set the global flag on the regexp. The select next command
doesn't pass this flag *and* calls stop, which is kind of redundant, but
I'm gonna just leave it as it is atm.