]> git.saurik.com Git - wxWidgets.git/commitdiff
Use wxIsalnum to test for word delimiters
authorJulian Smart <julian@anthemion.co.uk>
Mon, 2 Oct 2006 12:47:31 +0000 (12:47 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 2 Oct 2006 12:47:31 +0000 (12:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41563 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/richtext/richtextctrl.cpp

index 6e8126069251c7d32ec7e8ac67454a467a3c1a79..2a8b344a358392543fd8af81ef1542125312ab1f 100644 (file)
@@ -1610,8 +1610,7 @@ void wxRichTextCtrl::SelectNone()
 
 static bool wxIsWordDelimiter(const wxString& text)
 {
-    static wxString delimiters = wxT(" ,.:;!?-\"'~£$%^&*()_+-={}[]@#<>/\\|");
-    return !text.IsEmpty() && delimiters.Find(text) != wxNOT_FOUND;
+    return !text.IsEmpty() && !wxIsalnum(text[0]);
 }
 
 /// Select the word at the given character position