nano-devel
[Top][All Lists]
Advanced

[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 06:55:31 -0700

On 4/1/15, Benno Schulenberg <address@hidden> wrote:
>
> On Wed, Apr 1, 2015, at 01:37, Mark Majeres wrote:
>> > On Sat, Mar 28, 2015, at 22:24, Mark Majeres wrote:
>> >> I think the approach would work best if the
>> >> selection is not partioned, but just recognized as the start and
>> >> ending locations of the do_replace_loop().  In summary,
>> >> do_replace_loop() needs to be reworked so that it will function the
>> >> same for selections and non-selections.
>>
>> Please try this patch.
>
> Thanks!  When the selection is the right side up, this works
> beautifully.  (And there is no panic about the mark highlight
> disappearing; it feels quite natural.)
>
> 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.
>
> Benno
>

This is working fine for me.  Only one occurrence is being replaced.

src/nano -I +99 README

--Mark



reply via email to

[Prev in Thread] Current Thread [Next in Thread]