From 0297af15208b916f05dc939e2c7679639a42ecd3 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 1 Oct 2004 18:14:20 +0000 Subject: [PATCH] Fixed typo, patch from Will git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wx/lib/masked/maskededit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wxPython/wx/lib/masked/maskededit.py b/wxPython/wx/lib/masked/maskededit.py index a3801d6eb9..c64c48588e 100644 --- a/wxPython/wx/lib/masked/maskededit.py +++ b/wxPython/wx/lib/masked/maskededit.py @@ -4928,7 +4928,7 @@ class MaskedEditMixin: matched_str = newtext newtext = self._ctrl_constraints._choices[match_index] edit_end = self._ctrl_constraints._extent[1] - new_select_to = min(edit_end, len(newvalue.rstrip())) + new_select_to = min(edit_end, len(newtext.rstrip())) match_field = self._ctrl_constraints if self._ctrl_constraints._insertRight: # adjust position to just after partial match in control: -- 2.50.0