int EditorManager::ReplaceInFiles(cbFindReplaceData* data)
But this function was too long, and I can't understand the whole logic. :(
void EditorManager::CalculateFindReplaceStartEnd(cbStyledTextCtrl* control, cbFindReplaceData* data, bool replace)
Thanks.
Is it possible to change the start position of the search. It seems this function control the start position.
sdk\editormanager.cpp line 1287Codevoid EditorManager::CalculateFindReplaceStartEnd(cbStyledTextCtrl* control, cbFindReplaceData* data, bool replace)
Hi, jens, I think you misunderstand my idea.
I don't want to change the behavior when I double click on a string.
I just want to change the search(replace) start position, it seems we can change it in the function
void EditorManager::CalculateFindReplaceStartEnd,
And that don't affect the scintilla related behavior.
It's possible, but might be incorrect, what if you select text with pressed mouse-button from left to right ?It's of course also incorrect to change the start position for a search (at least in this case), because as written: the user might have had a cause to do so.
In this case it would be incorrect to set the cursor to the start of the selection (the user might have had a cause to do so).
How to decide when the current position has to be corrected and when not ?