It looks like the replace-all is always apply the current selected text, even when the scope is set to "all".