Notice to script power users:
When using
UltraEdit.activeDocument.findReplace.replaceAll=true;
UltraEdit.activeDocument.findReplace.replace("aaa","zzz");
in scripts in UE versions before 13.20 it inherited the option in the replace dialog: "Replace all is from top of file". With this option checked it acted on the whole document regardless of the cursor position.
From UE version 13.20 and on replaceAll is cursor dependent and ignores the "Replace all is from top of file" option. It replaces from the cursor position to the end of the document always. So if you want the replaceAll to act on the whole document always perform a
UltraEdit.activeDocument.top();
before
UltraEdit.activeDocument.findReplace.replace("aaa","zzz");
IDM tells me this is a feature and not a bug. So after fixing my pre-UE13.20 scripts (adding top() before every replace() ) they worked correctly again.
(I haven't checked if replaceAll in macros also need a Top command).
When using
UltraEdit.activeDocument.findReplace.replaceAll=true;
UltraEdit.activeDocument.findReplace.replace("aaa","zzz");
in scripts in UE versions before 13.20 it inherited the option in the replace dialog: "Replace all is from top of file". With this option checked it acted on the whole document regardless of the cursor position.
From UE version 13.20 and on replaceAll is cursor dependent and ignores the "Replace all is from top of file" option. It replaces from the cursor position to the end of the document always. So if you want the replaceAll to act on the whole document always perform a
UltraEdit.activeDocument.top();
before
UltraEdit.activeDocument.findReplace.replace("aaa","zzz");
IDM tells me this is a feature and not a bug. So after fixing my pre-UE13.20 scripts (adding top() before every replace() ) they worked correctly again.
(I haven't checked if replaceAll in macros also need a Top command).