From 1c07e924cdc33bea98f3d90e5af79baa8eb3ec02 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Mon, 2 Oct 2006 12:47:31 +0000 Subject: [PATCH] Use wxIsalnum to test for word delimiters git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41563 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/richtext/richtextctrl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/richtext/richtextctrl.cpp b/src/richtext/richtextctrl.cpp index 6e81260692..2a8b344a35 100644 --- a/src/richtext/richtextctrl.cpp +++ b/src/richtext/richtextctrl.cpp @@ -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 -- 2.45.2