X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5193b348e83ce2d8117e96ee269a099e2528f544..9fd1fa4b1a6a25fe70e703ceb68231c771de5d4e:/wxPython/wx/lib/masked/maskededit.py 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: