[python-win32] Editor find and replace can't count - off by oneerror
Mark Lawrence
breamoreboy at yahoo.co.uk
Sat Feb 11 22:46:09 CET 2012
On 11/02/2012 20:18, Roger Upole wrote:
> Mark Lawrence wrote:
>> Hi all,
>>
>> I assume that this is a long time known problem that is regarded as a joke but when I do a find and replace the number of items
>> reported as replaced is always one less than it should be. Fix and/or workaround pretty please.
>>
>> --
>> Cheers.
>>
>> Mark Lawrence.
>
> Yep, that's been around for a while. Not really a joke, just that noone's gotten
> around to fixing it yet.
>
> In site-packages\pythonwin\pywin\scintilla\find.py, add
> num = 1
> at line 324.
>
>
> Roger
Thank you Roger. For the record line 298 for my 2.7.2 version of pywin.
--
Cheers.
Mark Lawrence.
More information about the python-win32
mailing list