private int ReplaceAll(string findText, string replaceText)
{
if (Settings.SearchIn == SearchInOptions.OpenDocuments)
{
var currentDocument = 0;
var currentView = IsViewVisible((int)NppMsg.MAIN_VIEW) ? (int)NppMsg.MAIN_VIEW : (int)NppMsg.SUB_VIEW;
Win32.SendMessage(PluginBase.nppData._nppHandle, NppMsg.NPPM_ACTIVATEDOC, currentView, currentDocument);
_editor = Editor.GetActive();
return ReplaceAll(findText, replaceText, currentDocument, currentView);
}
return ReplaceAll(findText, replaceText, -1, -1);
}