Add lt and gt chars to isWordChar check.

Fix small regression with hilite and purge.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@178 f5eea248-9336-0410-98b8-ebc06183d4e3
pull/343/head^2
harrybharry 2008-04-22 23:36:11 +00:00
parent 65bb6ceb7f
commit 4dd8870891
2 changed files with 5 additions and 8 deletions

View File

@ -727,6 +727,8 @@ private:
case '}':
case '|':
case '=':
case '<':
case '>':
case '\\':
return false;
}

View File

@ -925,7 +925,7 @@ int FindReplaceDlg::processAll(ProcessOperation op, const char *txt2find, const
{
int nbReplaced = 0;
if (!isCreated())
if (!isCreated() && !txt2find)
return nbReplaced;
if ((op == ProcessReplaceAll) && (*_ppEditView)->getCurrentBuffer().isReadOnly())
return nbReplaced;
@ -1020,18 +1020,13 @@ int FindReplaceDlg::processAll(ProcessOperation op, const char *txt2find, const
if (op == ProcessMarkAll) //if marking, check if purging is needed
{
if ((_doStyleFoundToken) && (_doPurge))
if (_doPurge) {
if (_doMarkLine)
(*_ppEditView)->execute(SCI_MARKERDELETEALL, MARK_BOOKMARK);
if (_doStyleFoundToken)
{
(*_ppEditView)->clearIndicator(SCE_UNIVERSAL_FOUND_STYLE);
}
if (_doStyleFoundToken)
{
(*_ppEditView)->execute(SCI_SETLEXER, SCLEX_NULL);
}
}
int posFind = int((*_ppEditView)->execute(SCI_SEARCHINTARGET, (WPARAM)stringSizeFind, (LPARAM)pTextFind));