[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with Search/Replace


Benoit I'm 95% sure my fix is by luck and probably not in the correct place.
:)
Respects
BruceS

On Wed, 29 Oct 2025 at 16:41, Bruce Steers <bsteers4@xxxxxxxxx> wrote:

> Aah in that case yes, this is a bug.
>
> I've tested it on stable and master and can confirm.
> Tracking the problem down is not easy, the search is complicated.
>
> Benoit. possibly line 544 in FSearch.class/ doSearch() method...
>
>         If N >= $aResult.Count Then Break
>
> Should it be ...
>         If N > $aResult.Count Then Break
>
> this fixes the bug for me and have not seen any other errors yet.
> Respects
> BruceS
>
>
> On Tue, 28 Oct 2025 at 10:57, CD <dessere.claude@xxxxxx> wrote:
>
>> Le lundi 27 octobre 2025 à 15:34 +0100, CD a écrit :
>>
>> Hi, I'm having a problem with Search/Replace.
>> With the "Current Function" option, when you click "Replace,"
>> Gambas3 replaces every string except the last one,
>> which remains selected but not replaced...
>>
>> This doesn't happen with the "Current File" option.
>>
>> Regards
>>
>> Claude DESSERÉ
>>
>>
>>

Follow-Ups:
Re: problem with Search/ReplaceBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
References:
problem with Search/ReplaceCD <dessere.claude@xxxxxx>
Re: problem with Search/ReplaceCD <dessere.claude@xxxxxx>
Re: problem with Search/ReplaceBruce Steers <bsteers4@xxxxxxxxx>