nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] File size problem in the status bar


From: Liu Hao
Subject: Re: [Nano-devel] File size problem in the status bar
Date: Mon, 23 Jul 2018 10:27:46 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

在 2018-07-22 19:27, Benno Schulenberg 写道:

Op 22-07-18 om 09:50 schreef Liu Hao:
This fixes the problem. Thanks.

It fixed the problem, but was not good enough: it created another.
Run for example:

    src/nano --ignore --auto --line  +4,-1 NEWS

and type: M-P <Enter>.  Note how line 5 consists of 13 spaces.
Now type: <Enter> ^C.  Note the number of characters: 105487.


Yeah, nice catch, although I am still a bit curious how you managed to find it. XD

Now type: M-U ^C.  Oww!  The thirteen spaces are gone.  But the
file size has been reduced by just one.  Incorrect.  The spaces
should have remained.

Attached patch solves the issue in a better way.


I have tested pure spaces, pure tabs and mixed spaces and tabs with auto indent on and off, breaking a line at the beginning, in the middle and at the end. In all cases, the original issue no longer exists.




--
Best regards,
LH_Mouse




reply via email to

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