Use wxIsalnum to test for word delimiters
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41563 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1610,8 +1610,7 @@ void wxRichTextCtrl::SelectNone()
|
||||
|
||||
static bool wxIsWordDelimiter(const wxString& text)
|
||||
{
|
||||
static wxString delimiters = wxT(" ,.:;!?-\"'~<7E>$%^&*()_+-={}[]@#<>/\\|");
|
||||
return !text.IsEmpty() && delimiters.Find(text) != wxNOT_FOUND;
|
||||
return !text.IsEmpty() && !wxIsalnum(text[0]);
|
||||
}
|
||||
|
||||
/// Select the word at the given character position
|
||||
|
Reference in New Issue
Block a user