From: Julian Smart <julian@anthemion.co.uk>
Date: Mon, 7 May 2012 13:12:27 +0000 (+0000)
Subject: Added non-breaking space to whitespace check
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bea12bf08471ec4c7ec7c9a0f0fe202978adb40c

Added non-breaking space to whitespace check


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71374 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/src/richtext/richtextctrl.cpp b/src/richtext/richtextctrl.cpp
index a1787829ed..6248635425 100644
--- a/src/richtext/richtextctrl.cpp
+++ b/src/richtext/richtextctrl.cpp
@@ -2335,7 +2335,7 @@ bool wxRichTextCtrl::PageDown(int noPages, int flags)
 
 static bool wxRichTextCtrlIsWhitespace(const wxString& str)
 {
-    return str == wxT(" ") || str == wxT("\t");
+    return str == wxT(" ") || str == wxT("\t") || (!str.empty() && (str[0] == (wxChar) 160));
 }
 
 // Finds the caret position for the next word