X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4251af7e75f58f3ad3b221169964b71913015aab..e773f79b191e77649b07f527a08405863a1cb117:/wxPython/wx/py/editwindow.py?ds=sidebyside diff --git a/wxPython/wx/py/editwindow.py b/wxPython/wx/py/editwindow.py index 808e1785f3..26c419c696 100644 --- a/wxPython/wx/py/editwindow.py +++ b/wxPython/wx/py/editwindow.py @@ -251,13 +251,13 @@ class EditWindow(stc.StyledTextCtrl): def DoFindNext(self, findData, findDlg=None): backward = not (findData.GetFlags() & wx.FR_DOWN) - matchcase = findData.GetFlags() & wx.FR_MATCHCASE + matchcase = (findData.GetFlags() & wx.FR_MATCHCASE) != 0 end = self.GetLastPosition() textstring = self.GetRange(0, end) findstring = findData.GetFindString() if not matchcase: - textstring.lower() - findstring.lower() + textstring = textstring.lower() + findstring = findstring.lower() if backward: start = self.GetSelection()[0] loc = textstring.rfind(findstring, 0, start)