Merge pull request #3974 from RaiKoHoff/Dev_Master

mark all occurrences: move caret to end of main selection
This commit is contained in:
Pairi Daiza 2022-02-17 14:33:10 +01:00 committed by GitHub
commit 70c84ef086
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7687,6 +7687,9 @@ void EditMarkAll(LPCWSTR wchFind, int sFlags, DocPos rangeStart, DocPos rangeEnd
iPos = _FindInTarget(wchText, sFlags, &start, &end, true, FRMOD_NORM);
};
if (count > 0) {
SciCall_SetSelectionNCaret(SciCall_GetMainSelection(), SciCall_GetSelectionNEnd(SciCall_GetMainSelection()));
}
Globals.iMarkOccurrencesCount = count;
}
EndWaitCursor();