[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] undoing replacings in a marked region goes wrong
From: |
Mark Majeres |
Subject: |
Re: [Nano-devel] undoing replacings in a marked region goes wrong |
Date: |
Wed, 1 Apr 2015 08:52:22 -0700 |
On 4/1/15, Benno Schulenberg <address@hidden> wrote:
>
> On Wed, Apr 1, 2015, at 15:55, Mark Majeres wrote:
>> On 4/1/15, Benno Schulenberg <address@hidden> wrote:
>> > However, when the selection is upside down, it does a replace
>> > in the whole file. To reproduce: 'src/nano +99 README', and:
>> >
>> > M-A <Up> <Up> <Up>
>> > M-R the <Enter> XXX <Enter> A
>> >
>> > It has replaced 28 occurrences instead of just one.
>>
>> This is working fine for me. Only one occurrence is being replaced.
>>
>> src/nano -I +99 README
>
> Also with -I, a reverse selection stil replaces all. :|
>
>
> Your patch is against r5166. I thought maybe r5169 could interfere.
> But "updating" to version 5166 and applying the patch still exhibits
> the full-replacement behaviour. :( Weird!
Hi Benno,
I put the check at the bottom of the loop too, a new patch is attached
for you to compare.
--Mark
replace.nopartions.2.patch
Description: Text Data
- Re: [Nano-devel] undoing replacings in a marked region goes wrong, Benno Schulenberg, 2015/04/01
- Re: [Nano-devel] undoing replacings in a marked region goes wrong, Mark Majeres, 2015/04/01
- Re: [Nano-devel] undoing replacings in a marked region goes wrong, Benno Schulenberg, 2015/04/01
- Re: [Nano-devel] undoing replacings in a marked region goes wrong, Benno Schulenberg, 2015/04/01
- Re: [Nano-devel] undoing replacings in a marked region goes wrong, Benno Schulenberg, 2015/04/01
- Re: [Nano-devel] undoing replacings in a marked region goes wrong, Benno Schulenberg, 2015/04/02
- Re: [Nano-devel] undoing replacings in a marked region goes wrong, Benno Schulenberg, 2015/04/02
- Re: [Nano-devel] undoing replacings in a marked region goes wrong, Benno Schulenberg, 2015/04/02
- [Nano-devel] [patch v7] properly undoing replacements in a marked region, Benno Schulenberg, 2015/04/08