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: Benno Schulenberg
Subject: Re: [Nano-devel] File size problem in the status bar
Date: Sun, 22 Jul 2018 13:27:22 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

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.

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.

Benno

Attachment: 0001-text-add-auto-indentation-to-the-file-size-after-cre.patch
Description: Text Data

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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