Fix 'Replace All' in direction up

When you place the cursor at the end of text and try to replace all occurences of some word with direction up, nothing is found. This will fix it.