[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] FIX for undo/redo after copy and paste
From: |
Mark Majeres |
Subject: |
Re: [Nano-devel] FIX for undo/redo after copy and paste |
Date: |
Mon, 31 Mar 2014 18:05:15 -0700 |
Hi Benno,
Yeah, it does the same thing here. If I 'set tabstospaces' before
creating the lines then it works fine. I think I saw a function for
making calculations on tabs, I will look into it and make the change.
I also noticed that I wasn't able to change the tabsize. No matter
what value I placed in nanorc, I always get tab = 4spaces.
Mark
On 3/31/14, Benno Schulenberg <address@hidden> wrote:
>
> Hi Mark and others,
>
> On Wed, Mar 26, 2014, at 16:07, Mark Majeres wrote:
>> Attached is a patch for v2.3.2 that fixes the undo/redo functions
>> after a copy and paste.
>
> It gets rid of the mayday warning, and it works most of the time,
> which is cool. But it fails with lines that start with a tab.
>
> Type this into an empty buffer (two lines, each starting with a tab):
>
> This is four words.
> And these are five more.
>
> Put the cursor at the very start of the second line, then do:
>
> M-A End M-^ Up ^U M-U
>
> The first line is truncated to "This is four".
>
> Can you confirm?
>
> (This is with the attached version of your patch against SVN.)
> (If you improve your patch, please do it against SVN.)
>
> Benno
>
> --
> http://www.fastmail.fm - Access your email from home and the web
>
>